Remove extra list entries; Fix prerm
This commit is contained in:
@@ -39,10 +39,18 @@ fi
|
|||||||
|
|
||||||
echo "Combo package cleanup in progress..."
|
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
|
if [ -f "$LIST_FILE" ]; then
|
||||||
|
# Remove opkg control file entries and specific bundled paths
|
||||||
sed -i '/^\/usr\/lib\/opkg\/info\//d' "$LIST_FILE"
|
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
|
else
|
||||||
echo "Warning: ${LIST_FILE} not found."
|
echo "Warning: ${LIST_FILE} not found."
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
service stop mount-fix
|
service init-overlay-watchdog stop
|
||||||
service stop init-overlay-watchdog
|
service mount-fix stop
|
||||||
service disable mount-fix
|
sleep 1
|
||||||
service disable init-overlay-watchdog
|
service mount-fix disable
|
||||||
|
service init-overlay-watchdog disable
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
Reference in New Issue
Block a user