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:
parent
cdb05d5bdc
commit
1207ba145e
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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")"
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user