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 57c034e..88dded6 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 3b2ab74..810558c 100755 (executable)
@@ -87,6 +87,5 @@ if [ -z "$INITRAMFS" ]; then
 
        echo "- init -"
        
-       killall hotplug2
        exec /sbin/init
 fi