projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change hotplug trigger to a simpler awk command
[openwrt.git]
/
package
/
base-files
/
default
/
etc
/
init.d
/
S10boot
diff --git
a/package/base-files/default/etc/init.d/S10boot
b/package/base-files/default/etc/init.d/S10boot
index
34f4cea
..
b361e15
100755
(executable)
--- 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
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
/usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
done
This page took
0.021725 seconds
and
4
git commands to generate.