diff options
author | Mike Baker <mbm@openwrt.org> | 2006-08-27 11:22:56 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2006-08-27 11:22:56 +0000 |
commit | 7aa8c63fcfbb8b3ebb6d23be5827db2bb531d4f6 (patch) | |
tree | 6bdc22b571a90af1ab9a0a97b893457f6f3af914 /openwrt | |
parent | 97b782a6363b824b25360386d97de0390d9378f4 (diff) |
change hotplug trigger to a simpler awk command
SVN-Revision: 4685
Diffstat (limited to 'openwrt')
-rwxr-xr-x | openwrt/package/base-files/default/etc/init.d/S10boot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S10boot b/openwrt/package/base-files/default/etc/init.d/S10boot index 34f4cea934..b361e156fe 100755 --- a/openwrt/package/base-files/default/etc/init.d/S10boot +++ b/openwrt/package/base-files/default/etc/init.d/S10boot @@ -17,7 +17,8 @@ touch /var/log/wtmp touch /var/log/lastlog [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe -for iface in $(/sbin/ifconfig -a | awk '{print $1}' | grep eth); do +# manually trigger hotplug before loading modules +for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net done |