diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-08-27 11:22:56 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-08-27 11:22:56 +0000 |
commit | 9a0a2cab803e126dc21a50557d7f4dedeb412b24 (patch) | |
tree | 4e474957ac8a5e76ef382076ad75a0aa51302340 /package/base-files/default/etc | |
parent | 93910ace66076a8e3ea53ad70ad9ae961fbf99d0 (diff) |
change hotplug trigger to a simpler awk command
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4685 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/etc')
-rwxr-xr-x | package/base-files/default/etc/init.d/S10boot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/default/etc/init.d/S10boot b/package/base-files/default/etc/init.d/S10boot index 34f4cea934..b361e156fe 100755 --- a/package/base-files/default/etc/init.d/S10boot +++ b/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 |