mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-27 07:37:19 +00:00
Add check for overlay rootfs before linking /sdcard/record to /opt/record
This commit is contained in:
parent
7fe2053d6b
commit
f2babb4593
@ -34,8 +34,10 @@ case "$1" in
|
|||||||
echo $CUSTOM_HOSTNAME > /opt/wz_mini/etc/hostname
|
echo $CUSTOM_HOSTNAME > /opt/wz_mini/etc/hostname
|
||||||
mount --bind /opt/wz_mini/etc/hostname /etc/hostname
|
mount --bind /opt/wz_mini/etc/hostname /etc/hostname
|
||||||
|
|
||||||
|
if df / | grep -q overlayfs; then
|
||||||
mkdir -p /opt/record
|
mkdir -p /opt/record
|
||||||
mount --bind /sdcard/record /opt/record
|
mount --bind /sdcard/record /opt/record
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start}"
|
echo "Usage: $0 {start}"
|
||||||
|
Loading…
Reference in New Issue
Block a user