mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 14:48:59 +02:00
move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12058 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1f75fe411e
commit
53f7e4a36b
@ -48,6 +48,7 @@ start() {
|
|||||||
ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
|
ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf
|
||||||
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
|
||||||
|
|
||||||
|
killall -q hotplug2
|
||||||
[ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
|
[ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
|
||||||
--max-children 1 --no-coldplug &
|
--max-children 1 --no-coldplug &
|
||||||
|
|
||||||
|
@ -87,6 +87,5 @@ if [ -z "$INITRAMFS" ]; then
|
|||||||
|
|
||||||
echo "- init -"
|
echo "- init -"
|
||||||
|
|
||||||
killall hotplug2
|
|
||||||
exec /sbin/init
|
exec /sbin/init
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user