projects
/
openwrt
/
staging
/
svanheule.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b782a
)
change hotplug trigger to a simpler awk command
author
Mike Baker
<mbm@openwrt.org>
Sun, 27 Aug 2006 11:22:56 +0000
(11:22 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Sun, 27 Aug 2006 11:22:56 +0000
(11:22 +0000)
SVN-Revision: 4685
openwrt/package/base-files/default/etc/init.d/S10boot
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/etc/init.d/S10boot
b/openwrt/package/base-files/default/etc/init.d/S10boot
index 34f4cea93430ba1c45696e684ea31da57d501d47..b361e156fead0b219545a415d3f98495ee0776f6 100755
(executable)
--- 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