mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
add bootdone init script
This commit is contained in:
parent
41d54e8d19
commit
fda8329f20
7
board/common/overlay/etc/init.d/bootdone
Executable file
7
board/common/overlay/etc/init.d/bootdone
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /etc/init.d/panic
|
||||||
|
|
||||||
|
# reset panic counter after a successful boot
|
||||||
|
echo 0 > ${_PANIC_COUNTER_FILE}
|
||||||
|
|
@ -10,7 +10,7 @@ echo "---- booting $os_name $os_version ----" >> $tmp_boot_log
|
|||||||
|
|
||||||
# start all init scripts in /etc/init.d,
|
# start all init scripts in /etc/init.d,
|
||||||
# executing them in numerical order.
|
# executing them in numerical order.
|
||||||
(for i in /etc/init.d/S??*; do
|
(for i in /etc/init.d/S??* /etc/init.d/bootdone; do
|
||||||
[ ! -x "$i" ] && continue
|
[ ! -x "$i" ] && continue
|
||||||
[ -f /data/etc/no_$(basename $i) ] && continue
|
[ -f /data/etc/no_$(basename $i) ] && continue
|
||||||
$i start || break
|
$i start || break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user