2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00

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

This commit is contained in:
Christopher Roy Bratusek 2019-05-05 20:37:22 +02:00
parent cdb05d5bdc
commit 1207ba145e
5 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,8 @@
* init.d Scripts * init.d Scripts
* move init.d scripts logs from ${MODDIR}/.logs to ${MODDIR}/logs * 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 * logscleaner init.d Script
* only clean files older than 7 days * only clean files older than 7 days

View File

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

View File

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

View File

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

View File

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