change hotplug trigger to a simpler awk command
SVN-Revision: 4685
This commit is contained in:
parent
97b782a636
commit
7aa8c63fcf
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue