init: don't start hotplug2 if it doesn't exist
authorFelix Fietkau <nbd@openwrt.org>
Wed, 28 Nov 2007 02:36:10 +0000 (02:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 28 Nov 2007 02:36:10 +0000 (02:36 +0000)
commitb443ee0fbbcd8e37622f68f1e6b9672a45108cdf
tree91cf9ebfdfa9d924943a6648c73062732c1fc0e6
parent0795035b35dded7d3abaccba7b08953b11e8bf4a
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
package/base-files/files/etc/init.d/boot