Update: sdxpinn-mount-fix 1.0.11 RC

-Improved stopping mount-fix
     - Now restores stock filesystem completely when stopped.
     - / is still rw after but a reboot or setting it to ro will make it be read only again

- Improved echo and comments
This commit is contained in:
iamromulan
2024-10-05 21:05:36 -04:00
parent b7b8bb2838
commit 3a35becca8
4 changed files with 20 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
Package: sdxpinn-mount-fix
Version: 1.0.10
Version: 1.0.11
Architecture: aarch64_cortex-a53
Maintainer: Cameron Thompson iamromulan@github.com
Description: Creates a usable mount space and overlay for SDXPINN modems. Dependencies bundled: libinotifytools and inotifywait

View File

@@ -4,19 +4,20 @@
DETECTED_PACKAGES_FILE="/tmp/detected_packages.tmp"
LIST_FILE_DELETED=false
# Function to check if a specific package is installed and delete its list file
# Function to check if a specific bundled package is already installed and delete its list file
detect_and_remove_list_files() {
local package_name="$1"
local list_file="/usr/lib/opkg/info/${package_name}.list"
# Check if the package is installed by checking its .list file
# Check if the bundled package is installed by checking its .list file
if [ -f "$list_file" ]; then
echo "$package_name is already installed. Deleting $list_file to avoid conflicts."
echo "$package_name is already installed. Deleting its $list_file to avoid future conflicts."
rm -f "$list_file"
echo "$package_name" >> "$DETECTED_PACKAGES_FILE"
LIST_FILE_DELETED=true
else
echo "$package_name is not installed."
echo "$package_name is not currently installed."
echo "$package_name is included in this package and will be installed."
fi
}

View File

@@ -5,5 +5,6 @@ service mount-fix stop
sleep 1
service mount-fix disable
service init-overlay-watchdog disable
echo "Filesystem structure returned to Quectel Stock"
echo "Backup exists at /data/rootfs"
exit 0