Re: [OpenWrt-Devel] opkg remove ifconfig opkg install 'ip'
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 bitt...@bluebottle.comwrote: 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, before delivering a patch, is to test some 'complex' setups and cleanup the code and also translate 'route' to 'ip route' and 'arp' to 'ip neigh'. bye, Bastian Bittorf this is the bootlog of on r16356 without 'ifconfig': up12s '/sbin/hotplug-call' calls 'ifconfig lo' - '/etc/ip2ifconfig_wrapper.sh lo' (show_specific_dev) up13s '/sbin/hotplug-call' calls 'ifconfig lo 0.0.0.0' - 'ip address add 0.0.0.0 dev lo' up13s '/sbin/hotplug-call' calls 'ifconfig lo' - '/etc/ip2ifconfig_wrapper.sh lo' (show_specific_dev) up13s '/sbin/hotplug-call' calls 'ifconfig lo up' - 'ip link set dev lo up' up14s '/sbin/hotplug-call' calls 'ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast +' - 'ip address add 127.0.0.1/8 broadcast + dev lo' up14s '/sbin/hotplug-call' calls 'ifconfig' - '/etc/ip2ifconfig_wrapper.sh' (show_all_devs) up16s '/sbin/hotplug-call' calls 'ifconfig eth0.0' - error (not in /proc/net/dev) up16s '/sbin/hotplug-call' calls 'ifconfig eth0 up' - 'ip link set dev eth0 up' up16s '/sbin/hotplug-call' calls 'ifconfig eth0.1' - error (not in /proc/net/dev) up16s '/sbin/hotplug-call' calls 'ifconfig eth0 up' - 'ip link set dev eth0 up' up17s '/sbin/hotplug-call' calls 'ifconfig eth0.0' - '/etc/ip2ifconfig_wrapper.sh eth0.0' (show_specific_dev) up18s '/sbin/hotplug-call' calls 'ifconfig eth0.0 0.0.0.0' - 'ip address add 0.0.0.0 dev eth0.0' up18s '/sbin/hotplug-call' calls 'ifconfig eth0.0' - '/etc/ip2ifconfig_wrapper.sh eth0.0' (show_specific_dev) up19s '/sbin/hotplug-call' calls 'ifconfig eth0.0' - '/etc/ip2ifconfig_wrapper.sh eth0.0' (show_specific_dev) up20s '/sbin/hotplug-call' calls 'ifconfig br-lan' - error (not in /proc/net/dev) up20s '/sbin/hotplug-call' calls 'ifconfig br-lan up' - 'ip link set dev br-lan up' up20s '/sbin/hotplug-call' calls 'ifconfig eth0.0 up' - 'ip link set dev eth0.0 up' up21s '/sbin/hotplug-call' calls 'ifconfig eth0.1' - '/etc/ip2ifconfig_wrapper.sh eth0.1' (show_specific_dev) up22s '/sbin/hotplug-call' calls 'ifconfig eth0.1 0.0.0.0' - 'ip address add 0.0.0.0 dev eth0.1' up22s '/sbin/hotplug-call' calls 'ifconfig eth0.1' - '/etc/ip2ifconfig_wrapper.sh eth0.1' (show_specific_dev) up23s '/sbin/hotplug-call' calls 'ifconfig eth0.1' - '/etc/ip2ifconfig_wrapper.sh eth0.1' (show_specific_dev) up24s '/sbin/hotplug-call' calls 'ifconfig eth0.1 up' - 'ip link set dev eth0.1 up' up25s '/sbin/hotplug-call' calls 'ifconfig' - '/etc/ip2ifconfig_wrapper.sh' (show_all_devs) up26s '/usr/share/udhcpc/default.script' calls 'ifconfig eth0.1 0.0.0.0' - 'ip address add 0.0.0.0 dev eth0.1' up31s '/sbin/hotplug-call' calls 'ifconfig br-lan up' - 'ip link set dev br-lan up' up31s '/sbin/wifi' calls 'ifconfig' - '/etc/ip2ifconfig_wrapper.sh' (show_all_devs) up32s '/sbin/hotplug-call' calls 'ifconfig br-lan up' - 'ip link set dev br-lan up' up32s '/sbin/hotplug-call' calls 'ifconfig br-lan 192.168.1.28 netmask 255.255.255.0 broadcast +' - 'ip address add 192.168.1.28/24 broadcast + dev br-lan' up33s '/sbin/hotplug-call' calls 'ifconfig' - '/etc/ip2ifconfig_wrapper.sh' (show_all_devs) up37s '/sbin/wifi' calls 'ifconfig wlan0 up' - 'ip link set dev wlan0 up' up39s '/sbin/wifi' calls 'ifconfig wlan0' - '/etc/ip2ifconfig_wrapper.sh wlan0' (show_specific_dev) up39s '/sbin/wifi' calls 'ifconfig wlan0 0.0.0.0' - 'ip address add 0.0.0.0 dev wlan0' up40s '/sbin/wifi' calls 'ifconfig wlan0' - '/etc/ip2ifconfig_wrapper.sh wlan0' (show_specific_dev) up40s '/sbin/wifi' calls 'ifconfig br-lan' - '/etc/ip2ifconfig_wrapper.sh br-lan' (show_specific_dev) up41s '/sbin/wifi' calls 'ifconfig wlan0 up' - 'ip link set dev wlan0 up' ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] opkg remove ifconfig opkg install 'ip'
-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? In any case we should keep the stuff compatible with ifconfig/route. ~ JoW -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko6Tb4ACgkQdputYINPTPOVXwCgkKSYPBAR4/KAGyCkEFLD+yKy ETUAmwWrNn6k5SpkbjmMsBf3jPmyWDep =DFG3 -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] opkg remove ifconfig opkg install 'ip'
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 kilobytes of bloat? busybox also has a builtin ip; I don't know if it has all the features needed but if it has, the images could get even smaller without the external ip and without the builtin ifconfig. Cheers, Malte -- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] opkg remove ifconfig opkg install 'ip'
Malte S. Stretz m...@apache.org 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 will introduce yet another few kilobytes of bloat? busybox also has a builtin ip; I don't know if it has all the features needed but if it has, the images could get even smaller without the external ip and without the builtin ifconfig. The ip applet is not enabled currently, and I don't know if it's smaller than the ifconfig applet. -- Feri. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] opkg remove ifconfig opkg install 'ip'
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 -rwxr-xr-x 1 mss mss 640684 2009-06-18 19:17 busybox_unstripped Yes, it seems like the ip applet is definitely bigger. Hello, Try removing 'route' too (-ifconfig-route+ip). 'route' can be replaced by 'ip' also, if this function is implemented in busybox. Cheers, Malte Regards, Vasilis -- Vasilis Tsiligiannis Silverton Electronics Dep.Research Development Tel.+302105746996 Fax.+302105745389 Email. b_tsiligian...@silverton.gr URL.http://www.silverton.gr/ Addr. 30, Anatolis str. Athens, Peristeri, 12133 GREECE signature.asc Description: This is a digitally signed message part. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New OpenWrt Community Wiki
On Thu, 2009-06-18 at 12:43 +0200, Malte S. Stretz wrote: Hi, On Wednesday 17 June 2009 20:06:29 Gregers Petersen wrote: After long and hard gestation the new OpenWrt community wiki is now ready and open for action :-) Thanks for the work on the shiny new wiki :) The OpenWrt developer team is looking for a few individuals who would be willing to help with moderation of the new wiki content and structure. Individuals interested in this should contact me ;-) For now, just my old bugging to keep the old links working. My suggestion: Put the attached PHP script on oldwiki.openwrt.org and add a config line like rewrite ^/([A-Z].*)$ /oldwiki.php$1 done in nginx with the following rule: rewrite ^/([A-Z].*) /oldwiki/$1 redirect; should work, please report if problems occur. thx :) kloschi -- I love deadlines. I especially like the whooshing sound they make as they fly by. — Douglas Adams signature.asc Description: This is a digitally signed message part ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] opkg remove ifconfig opkg install 'ip'
Malte S. Stretz m...@apache.org writes: On Thursday 18 June 2009 18:20:06 Ferenc Wagner wrote: Malte S. Stretz m...@apache.org 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 will introduce yet another few kilobytes of bloat? busybox also has a builtin ip; I don't know if it has all the features needed but if it has, the images could get even smaller without the external ip and without the builtin ifconfig. The ip applet is not enabled currently, and I don't know if it's smaller than the ifconfig applet. I know that its not enabled per default and don't know either if it is smaller (but I'm currently compiling to see what the difference is). But even if it is the same size as ifconfig, the per default installed ip package (the binary has about 200k) would become obsolete. If busybox can do all the stuff it does that means. So maybe $((script + (busybox + ip_applet - ifconfig_applet))) $((ip + (busybox - ip_applet + ifconfig_applet))... we'll see. Along the same lines, do you think the external bridge-tools is worth staying installed by default, given that the busybox brctl applet is already included? I didn't notice any missing functionality until now. If not error messages... -- Cheers, Feri. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New OpenWrt Community Wiki
Hi Kloschi, doesn't work for me: #1 http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto should result in http://oldwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto.html so .html is missing #2 slashes have to be converted to (2f) Maddes On 18.06.2009 21:11, kloschi wrote: On Thu, 2009-06-18 at 12:43 +0200, Malte S. Stretz wrote: Hi, On Wednesday 17 June 2009 20:06:29 Gregers Petersen wrote: After long and hard gestation the new OpenWrt community wiki is now ready and open for action :-) Thanks for the work on the shiny new wiki :) The OpenWrt developer team is looking for a few individuals who would be willing to help with moderation of the new wiki content and structure. Individuals interested in this should contact me ;-) For now, just my old bugging to keep the old links working. My suggestion: Put the attached PHP script on oldwiki.openwrt.org and add a config line like rewrite ^/([A-Z].*)$ /oldwiki.php$1 done in nginx with the following rule: rewrite ^/([A-Z].*) /oldwiki/$1 redirect; should work, please report if problems occur. thx :) kloschi ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New OpenWrt Community Wiki
On Thu, 2009-06-18 at 21:34 +0200, Matthias Buecher / Germany wrote: Hi Kloschi, doesn't work for me: #1 http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto should result in http://oldwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto.html so .html is missing ooops, please check with nuwiki.openwrt.org, because DNS is not switched yet and will take some time. http://nuwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto works for me. #2 slashes have to be converted to (2f) Can you confirm that with the nuwiki tld? regards, kloschi -- I love deadlines. I especially like the whooshing sound they make as they fly by. — Douglas Adams signature.asc Description: This is a digitally signed message part ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New OpenWrt Community Wiki
On Thursday 18 June 2009 21:44:17 kloschi wrote: On Thu, 2009-06-18 at 21:34 +0200, Matthias Buecher / Germany wrote: doesn't work for me: #1 http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto should result in http://oldwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto.html so .html is missing ooops, please check with nuwiki.openwrt.org, because DNS is not switched yet and will take some time. http://nuwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto works for me. The more complicated http://nuwiki.openwrt.org/OpenWrtDocs/Development/SetupBuildEnvironmentHowTo works as well. Nice. Didn't know the DokuWiki was case-insensitive. The pages should have a rel-canonical but I couldn't find a DokuWiki plugin to do this. You should replace the string redirect in the rewrite line with a permanent (ie code 301 instead of 302) though :) #2 slashes have to be converted to (2f) Can you confirm that with the nuwiki tld? That would only be needed on oldwiki, if the few links to the oldwiki should be kept alive. Cheers, Malte -- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New OpenWrt Community Wiki
Just to confirm that it works for me. Waiting for the DNS change, so that all my wiki links in the forum work again. Maddes On 18.06.2009 22:14, kloschi wrote: On Thu, 2009-06-18 at 21:59 +0200, Malte S. Stretz wrote: On Thursday 18 June 2009 21:44:17 kloschi wrote: On Thu, 2009-06-18 at 21:34 +0200, Matthias Buecher / Germany wrote: doesn't work for me: #1 http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto should result in http://oldwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto.html so .html is missing ooops, please check with nuwiki.openwrt.org, because DNS is not switched yet and will take some time. http://nuwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto works for me. You should replace the string redirect in the rewrite line with a permanent (ie code 301 instead of 302) though :) fixed :) #2 slashes have to be converted to (2f) Can you confirm that with the nuwiki tld? That would only be needed on oldwiki, if the few links to the oldwiki should be kept alive. they will be staying alive, we have moved oldwiki into an own read-only namespace on nuwiki. hence the efforts. so, as soon as the DNS is switched, all old sites will still be available in good shape via nuwiki :) greeetz, kloschi ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New OpenWrt Community Wiki
On Thu, Jun 18, 2009 at 2:34 PM, Matthias Buecher / Germany m...@maddes.net wrote: Hi Kloschi, doesn't work for me: #1 http://wiki.openwrt.org/DropbearPublicKeyAuthenticationHowto should result in http://oldwiki.openwrt.org/DropbearPublicKeyAuthenticationHowto.html so .html is missing #2 slashes have to be converted to (2f) Maddes Folks, Been following this link, and for kicks read the above DropbearPublicKeyAuth... doc. Didn't see an author link, and would like to correct the section Disable password login. Best not to change the startup script, but change the /etc/config/dropbear option PasswordAuth 'on' from on to off and restart dropbear. Ciao, David A. Bandel -- Focus on the dream, not the competition. - Nemesis Air Racing Team motto ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel