init: don't start hotplug2 if it doesn't exist
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Nov 2007 02:36:10 +0000 (02:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Nov 2007 02:36:10 +0000 (02:36 +0000)
commit0d9004633dc1ff1fcd9d817bc217263dc10dab5c
tree70f5548cd8ca2d8f7661d2b4c6afea29de98d838
parent2f2e0b4f59bc8aa132c7d72a437c0e833cefdf21
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9606 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/etc/init.d/boot