aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-28 02:36:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-28 02:36:10 +0000
commitb443ee0fbbcd8e37622f68f1e6b9672a45108cdf (patch)
tree91cf9ebfdfa9d924943a6648c73062732c1fc0e6 /package/base-files/files/etc
parent0795035b35dded7d3abaccba7b08953b11e8bf4a (diff)
downloadupstream-b443ee0fbbcd8e37622f68f1e6b9672a45108cdf.tar.gz
upstream-b443ee0fbbcd8e37622f68f1e6b9672a45108cdf.tar.bz2
upstream-b443ee0fbbcd8e37622f68f1e6b9672a45108cdf.zip
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
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index c0b61928c1..b524c39c64 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -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