mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 09:33:20 +02: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:
parent
93910ace66
commit
9a0a2cab80
@ -17,7 +17,8 @@ touch /var/log/wtmp
|
|||||||
touch /var/log/lastlog
|
touch /var/log/lastlog
|
||||||
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
[ "$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
|
/usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user