Fix mount-fix issue

This commit is contained in:
Cameron Thompson
2025-01-28 19:49:42 -05:00
parent 3b2f4df801
commit 3d0a760e13
7 changed files with 69 additions and 79 deletions

View File

@@ -1,18 +1,23 @@
#!/bin/ash
# Enable and start the services
echo "Starting services..."
echo "Starting and enabling services..."
service mount-fix enable
service mount-fix-final enable
if grep -qs '/usrdata' /proc/mounts; then
echo "/usrdata is mounted. Enabling at /usrdata..."
cp -P /etc/rc.d/S03mount-fix /usrdata/etc/rc.d/S03mount-fix
rm /usrdata/overlay-work/etc-upper/rc.d/S03mount-fix
cp -P /etc/rc.d/S03mount-fix /usrdata/overlay-work/etc-upper/rc.d/S03mount-fix
cp -P /etc/rc.d/S04mount-fix-final /usrdata/etc/rc.d/S04mount-fix-final
rm /usrdata/overlay-work/etc-upper/rc.d/S04mount-fix-final
cp -P /etc/rc.d/S04mount-fix-final /usrdata/overlay-work/etc-upper/rc.d/S04mount-fix-final
fi
service mount-fix start
service mount-fix enable
service mount-fix-final enable
echo -e "\e[32m sdxpinn-mount-fix installed! Here is the new file structure! \e[0m"
echo -e "\e[32m ============================================================ \e[0m"