mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
rcS, rcK: back to forking init scripts rather than sourcing them
This commit is contained in:
parent
c173c1c862
commit
1c525a0a81
@ -12,12 +12,7 @@ echo "---- shutting down $os_name $os_version ----" >> $boot_log
|
||||
(for i in $(ls -r /etc/init.d/S??*); do
|
||||
[ ! -x "$i" ] && continue
|
||||
[ -f /data/etc/no_$(basename $i) ] && continue
|
||||
|
||||
(
|
||||
trap - INT QUIT TSTP
|
||||
set stop
|
||||
. $i
|
||||
)
|
||||
$i stop
|
||||
done& echo $! > $pid_file) | tee -a $boot_log &
|
||||
|
||||
pid=$(cat $pid_file)
|
||||
|
@ -13,12 +13,7 @@ echo "---- booting $os_name $os_version----" >> $tmp_boot_log
|
||||
(for i in /etc/init.d/S??*; do
|
||||
[ ! -x "$i" ] && continue
|
||||
[ -f /data/etc/no_$(basename $i) ] && continue
|
||||
|
||||
(
|
||||
trap - INT QUIT TSTP
|
||||
set start
|
||||
. $i
|
||||
)
|
||||
$i start
|
||||
done& echo $! > $pid_file) | tee -a $tmp_boot_log &
|
||||
|
||||
pid=$(cat $pid_file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user