1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 10:58:12 +03:00

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
This commit is contained in:
mbm 2006-08-27 11:22:56 +00:00
parent 93910ace66
commit 9a0a2cab80

View File

@ -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