mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 03:14:50 +00:00
init: don't start hotplug2 if it doesn't exist
The current init script always tries to start hotplug 2, even if it's not present, so we get an error on boot. This change checks for the presence of the hotplug2 binary before trying to start it. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> SVN-Revision: 9606
This commit is contained in:
parent
0795035b35
commit
b443ee0fbb
@ -41,7 +41,8 @@ start() {
|
||||
ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
|
||||
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
||||
|
||||
/sbin/hotplug2 --override --persistent --max-children 1 --no-coldplug &
|
||||
[ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
|
||||
--max-children 1 --no-coldplug &
|
||||
|
||||
# the coldplugging of network interfaces needs to happen later, so we do it manually here
|
||||
for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do
|
||||
|
Loading…
Reference in New Issue
Block a user