Remove extra list entries; Fix prerm

This commit is contained in:
iamromulan
2024-10-05 12:18:50 -04:00
parent e7cb821fa1
commit 0bb0720c6b
2 changed files with 15 additions and 6 deletions

View File

@@ -39,10 +39,18 @@ fi
echo "Combo package cleanup in progress..."
# Remove entries in the .list file that refer to opkg control files
# Remove entries in the .list file that refer to opkg control files and specific files
if [ -f "$LIST_FILE" ]; then
# Remove opkg control file entries and specific bundled paths
sed -i '/^\/usr\/lib\/opkg\/info\//d' "$LIST_FILE"
echo "Removed control file entries from $LIST_FILE."
sed -i '/^\/usr\/lib\/libinotifytools.so.0.4.1$/d' "$LIST_FILE"
sed -i '/^\/usr\/bin\/inotifywait$/d' "$LIST_FILE"
sed -i '/^\/usr\/lib\/libinotifytools.so$/d' "$LIST_FILE"
sed -i '/^\/etc\/init.d\/add_opkg_status_bundled$/d' "$LIST_FILE"
sed -i '/^\/tmp\/distfeeds.conf$/d' "$LIST_FILE"
sed -i '/^\/usr\/lib\/libinotifytools.so.0$/d' "$LIST_FILE"
echo "Removed unnecessary file entries from $LIST_FILE."
else
echo "Warning: ${LIST_FILE} not found."
fi

View File

@@ -1,8 +1,9 @@
#!/bin/ash
service stop mount-fix
service stop init-overlay-watchdog
service disable mount-fix
service disable init-overlay-watchdog
service init-overlay-watchdog stop
service mount-fix stop
sleep 1
service mount-fix disable
service init-overlay-watchdog disable
exit 0