Files
quectel-rgmii-toolkit/ipk-source/sdxpinn-mount-fix/CONTROL/postinst
Cameron Thompson 8de5a5f917 Update postinst
2025-01-26 01:29:41 -05:00

25 lines
802 B
Bash
Executable File

#!/bin/ash
# Enable and start the services
echo "Starting services..."
service mount-fix 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
fi
service mount-fix start
service mount-fix enable
echo -e "\e[32m sdxpinn-mount-fix installed! Here is the new file structure! \e[0m"
echo -e "\e[32m ============================================================ \e[0m"
mount && df -h
echo -e "\e[32m ============================================================ \e[0m"
echo -e "\e[32m sdxpinn-mount-fix installed! New file structure above! \e[0m"
exit 0