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)
commitaba0234bc4f7c1ba8f034f6aee37a7b9a42abd9e
tree70f5548cd8ca2d8f7661d2b4c6afea29de98d838
parent1a4f9fd328b050f1d2309f7699c5f9a6108a2bc6
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