Add sdxpinn-mount-fix
-Source Added -build-ipk executable script added -ipk added
This commit is contained in:
13
ipk-source/sdxpinn-mount-fix/CONTROL/preinst
Normal file
13
ipk-source/sdxpinn-mount-fix/CONTROL/preinst
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/ash
|
||||
|
||||
# Check if /etc is mounted
|
||||
if grep -qs '/etc ' /proc/mounts; then
|
||||
echo "Unmounting /etc..."
|
||||
umount -lf /etc
|
||||
fi
|
||||
|
||||
# Remount original rootfs as read-write
|
||||
echo "Mounting / as read-write"
|
||||
mount -o remount,rw /
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user