Răsfoiți Sursa

move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well

SVN-Revision: 12058
Felix Fietkau 17 ani în urmă
părinte
comite
37c7e13a5f

+ 1 - 0
package/base-files/files/etc/init.d/boot

@@ -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 &
 

+ 0 - 1
package/base-files/files/etc/preinit

@@ -87,6 +87,5 @@ if [ -z "$INITRAMFS" ]; then
 
 	echo "- init -"
 	
-	killall hotplug2
 	exec /sbin/init
 fi