move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 1 Aug 2008 03:01:42 +0000 (03:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 1 Aug 2008 03:01:42 +0000 (03:01 +0000)
SVN-Revision: 12058

package/base-files/files/etc/init.d/boot
package/base-files/files/etc/preinit

index 57c034eb48f20f5dce632b6ba6e10fabe7dba9a1..88dded646c3db1df2a75a68b64d78af8f5e6dc9d 100755 (executable)
@@ -48,6 +48,7 @@ start() {
        ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
+       killall -q hotplug2
        [ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
                        --max-children 1 --no-coldplug &
 
index 3b2ab74728a9c0f8442d045dc40264da43c54f2c..810558cf382d2f350a275317477113ca0c52f0ec 100755 (executable)
@@ -87,6 +87,5 @@ if [ -z "$INITRAMFS" ]; then
 
        echo "- init -"
        
-       killall hotplug2
        exec /sbin/init
 fi