Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Malte S. Stretz [19.06.2009 13:15]: > > Maybe its just me, but the last few weeks I tried to grok the OpenWrt base- > files scrips (and succeeded [1]) and my impression is that there is already a > lot of stuff crammed into /etc/functions.sh which is sourced by almost > everything but only us

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Outback Dingo [18.06.2009 16:00]: > i have some pretty unique environments here, want to send me the patch i can > help with some testing not a clean patch, but easy to install: ssh r...@openwrtbox cd /etc wget -O - "http://intercity-vpn.de/files/functions.sh_addon"; >>functions.sh wget http:/

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Malte S. Stretz
On Friday 19 June 2009 12:52:26 Bastian Bittorf wrote: > * elektra [19.06.2009 12:15]: > > doesn't connect to other Asterisk servers if 'route' is missing. > > therefore i implement a route() wrapper. > ATM i start at /etc/functions.sh but e.g. > asterisk does not use it. maybe it is a good > idea

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* elektra [19.06.2009 12:15]: > > doesn't connect to other Asterisk servers if 'route' is missing. therefore i implement a route() wrapper. ATM i start at /etc/functions.sh but e.g. asterisk does not use it. maybe it is a good idea to make a symlink for /sbin/route|ifconfig|arp to to wrapper at

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread elektra
Hi! > Try removing 'route' too (-ifconfig-route+ip). 'route' can be replaced by > 'ip' > also, if this function is implemented in busybox. You are right. However I did that a few months ago and ran into problems with Asterisk. For some strange reason it depends on it. Asterisk doesn't connect t

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Malte S. Stretz [19.06.2009 11:00]: > > arp is already a oneliner in /etc/profile and not compiled into busybox per > default. this has nothing to do with the real arp command, its just an quick and dirty "show the arp table", but you cannot manipulate anything using /proc/net/arp. > I agree

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Malte S. Stretz
On Friday 19 June 2009 09:31:59 Bastian Bittorf wrote: > * Vasilis Tsiligiannis [18.06.2009 21:15]: > > Try removing 'route' too (-ifconfig-route+ip). 'route' can be replaced by > > 'ip' also, if this function is implemented in busybox. > > -ifconfig -route -arp > +ip arp is already a oneliner in

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Jo-Philipp Wich [18.06.2009 16:30]: > > In any case we should keep the stuff compatible with ifconfig/route. for the first time: yes but on the long run we should definitely kick the oldskool-stuff, which is pretty awkward IMHO. (but show a short hint, if somebody types 'ifconfig/router/arp')

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Vasilis Tsiligiannis [18.06.2009 21:15]: > > Try removing 'route' too (-ifconfig-route+ip). 'route' can be replaced by > 'ip' > also, if this function is implemented in busybox. -ifconfig -route -arp +ip bye, Bastian Bittorf ___ openwrt-devel mail

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-19 Thread Bastian Bittorf
* Malte S. Stretz [18.06.2009 19:30]: > > > > what are the size differences? did you try it out? > the discussion goes in the wrong way IMHO. It does'nt really matter, if we get or loose _some_ kilobytes, 'ip' is definitily the way to go. hey, we are not in the 90s anymore - and you can do much

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Ferenc Wagner
"Malte S. Stretz" writes: > On Thursday 18 June 2009 18:20:06 Ferenc Wagner wrote: >> "Malte S. Stretz" writes: >>> On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: > today I've written a proof-of-concept for > getting rid of oldstyle networking aka 'ifconfig'. You do r

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Vasilis Tsiligiannis
On Thursday 18 June 2009 20:27:04 Malte S. Stretz wrote: > Now I did :) > > busybox+ifconfig-ip: > -rwxr-xr-x 1 mss mss 531500 2009-06-18 18:57 busybox > -rwxr-xr-x 1 mss mss 618905 2009-06-18 18:57 busybox_unstripped > > busybox-ifconfig+ip: > -rwxr-xr-x 1 mss mss 551168 2009-06-18 19:17 busybox >

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Malte S. Stretz
On Thursday 18 June 2009 18:07:49 bud.d...@suisse.org wrote: > On 18.06.2009 18:00, Malte S. Stretz wrote: > > On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: > >>> today I've written a proof-of-concept for > >>> getting rid of oldstyle networking aka 'ifconfig'. > >> > >> You do realize t

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Malte S. Stretz
On Thursday 18 June 2009 18:20:06 Ferenc Wagner wrote: > "Malte S. Stretz" writes: > > On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: > >>> today I've written a proof-of-concept for > >>> getting rid of oldstyle networking aka 'ifconfig'. > >> > >> You do realize that this "oldstyle" net

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Ferenc Wagner
"Malte S. Stretz" writes: > On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: >>> today I've written a proof-of-concept for >>> getting rid of oldstyle networking aka 'ifconfig'. >> >> You do realize that this "oldstyle" networking stuff uses busybox >> internals while switching to "ip" wi

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread bud . dhay
On 18.06.2009 18:00, Malte S. Stretz wrote: On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: today I've written a proof-of-concept for getting rid of oldstyle networking aka 'ifconfig'. You do realize that this "oldstyle" networking stuff uses busybox internals while switchi

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Malte S. Stretz
On Thursday 18 June 2009 16:22:54 Jo-Philipp Wich wrote: > > today I've written a proof-of-concept for > > getting rid of oldstyle networking aka 'ifconfig'. > > You do realize that this "oldstyle" networking stuff uses busybox > internals while switching to "ip" will introduce yet another few > ki

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. > today I've written a proof-of-concept for > getting rid of oldstyle networking aka 'ifconfig'. You do realize that this "oldstyle" networking stuff uses busybox internals while switching to "ip" will introduce yet another few kilobytes of bloat

Re: [OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Outback Dingo
i have some pretty unique environments here, want to send me the patch i can help with some testing On Thu, Jun 18, 2009 at 9:40 AM, Bastian Bittorf wrote: > today I've written a proof-of-concept for > getting rid of oldstyle networking aka 'ifconfig'. > > The approach is to to have an function

[OpenWrt-Devel] opkg remove ifconfig && opkg install 'ip'

2009-06-18 Thread Bastian Bittorf
today I've written a proof-of-concept for getting rid of oldstyle networking aka 'ifconfig'. The approach is to to have an function ifconfig() in /etc/functions.sh, which is included in all startup-scripts anyway, and if there is an /usr/sbin/ip, translate old_style to new_style... Next steps, be