mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 11:43:56 +08:00
🚀 Sync 2026-10-28 01:43:31
This commit is contained in:
1 parent
e646593c56
commit
d42296f292
162 files changed
+356
-233
No files matched your search
@@ -735,9 +735,12 @@ cleanup_legacy_startup_backups() {
|
||||
#===========================================================================================================================
|
||||
# Historical backup artifacts can clutter LuCI "System -> Startup".
|
||||
# Keep runtime clean by removing known obsolete backup filenames.
|
||||
# The old `*bak*` glob also wiped other packages' backups (e.g. wireless.bak),
|
||||
# so scope it to Clashoo's own script names (legacy `clash`, current `clashoo`).
|
||||
# `._*` is macOS AppleDouble metadata, never a valid init script, so it stays.
|
||||
rm -f /etc/init.d/._clash \
|
||||
/etc/init.d/._* \
|
||||
/etc/init.d/*bak* >/dev/null 2>&1 || true
|
||||
/etc/init.d/clash*bak* >/dev/null 2>&1 || true
|
||||
#===========================================================================================================================
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user