Add LuCI services menu entry
This commit is contained in:
1 parent
e891cc1b71
commit
137227389a
5 files changed
+40
No files matched your search
@@ -16,6 +16,7 @@ rmf() {
|
||||
rmf usr/sbin/owrt-full-backup
|
||||
rmf usr/sbin/owrt-backup
|
||||
rmf www/cgi-bin/owrt-full-backup
|
||||
rmf usr/lib/lua/luci/controller/owrt_full_backup.lua
|
||||
|
||||
if [ "$PURGE" = "1" ]; then
|
||||
rmf etc/config/fullbackup
|
||||
@@ -23,6 +24,8 @@ if [ "$PURGE" = "1" ]; then
|
||||
rmdir "$(target_path etc/owrt-full-backup)" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
rm -rf "$(target_path tmp/luci-indexcache)" "$(target_path tmp/luci-modulecache)" 2>/dev/null || true
|
||||
|
||||
if [ -x "$(target_path etc/init.d/uhttpd)" ]; then
|
||||
"$(target_path etc/init.d/uhttpd)" reload >/dev/null 2>&1 || "$(target_path etc/init.d/uhttpd)" restart >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user