mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-01 00:15:13 +08:00
17 lines
346 B
Bash
17 lines
346 B
Bash
#!/bin/sh
|
|
|
|
if [ -e "/etc/config/ucitrack" ]; then
|
|
uci -q batch <<-EOF
|
|
delete ucitrack.@passwall2_server[-1]
|
|
add ucitrack passwall2_server
|
|
set ucitrack.@passwall2_server[-1].init=passwall2_server
|
|
commit ucitrack
|
|
EOF
|
|
fi
|
|
|
|
rm -f /tmp/luci-indexcache /tmp/luci-indexcache.*
|
|
rm -rf /tmp/luci-modulecache/
|
|
killall -HUP rpcd 2>/dev/null
|
|
|
|
exit 0
|