mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-23 14:07:24 +00:00
fix S11configbackup is not run when not using overlay rootfs
This commit is contained in:
parent
24b30d21d9
commit
7eddbb6c18
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
if df / | grep -q overlayfs; then
|
if df / | grep -q overlayfs; then
|
||||||
mount --bind /sdcard /opt # Temporarily let this script do its operations as if SD Card is mounted as /opt
|
mount --bind /sdcard /opt # Temporarily let this script do its operations as if SD Card is mounted as /opt
|
||||||
|
fi
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
|
||||||
@ -59,6 +60,7 @@ case "$1" in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
if df / | grep -q overlayfs; then
|
||||||
umount /opt
|
umount /opt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user