make all init.d scripts wait until device fully booted (sys.boot_completed)

merge-requests/23/head
Christopher Roy Bratusek 5 years ago
parent cdb05d5bdc
commit 1207ba145e

@ -20,6 +20,8 @@
* init.d Scripts
* move init.d scripts logs from ${MODDIR}/.logs to ${MODDIR}/logs
* make all init.d scripts wait until device fully booted (sys.boot_completed)
* only effects System Mode, already been the case for Magisk Mode before
* logscleaner init.d Script
* only clean files older than 7 days

@ -1,5 +1,8 @@
#!/system/bin/sh
# wait until boot completed
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
echo "fstrim init script"
if [ -e /init.fstrim.sh ]; then

@ -1,5 +1,8 @@
#!/system/bin/sh
# wait until boot completed
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
LOGDIR="${MODDIR}"/logcats
echo "logcat init script"

@ -1,5 +1,8 @@
#!/system/bin/sh
# wait until boot completed
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
echo "logscleaner init script"
echo "Starting Automatic Cleaning at $(date +"%m-%d-%Y %H:%M:%S")"

@ -1,5 +1,8 @@
#!/system/bin/sh
# wait until boot completed
until [ `getprop sys.boot_completed`. = 1. ]; do sleep 1; done
echo "sqlite init script"
if which sqlite3 >/dev/null; then

Loading…
Cancel
Save