mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-26 23:27:18 +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
|
||||
mount --bind /opt/wz_mini/etc/hostname /etc/hostname
|
||||
|
||||
mkdir -p /opt/record
|
||||
mount --bind /sdcard/record /opt/record
|
||||
if df / | grep -q overlayfs; then
|
||||
mkdir -p /opt/record
|
||||
mount --bind /sdcard/record /opt/record
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
|
Loading…
Reference in New Issue
Block a user