op-packages/sunpanel/files/sunpanel.uci-default
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

22 lines
377 B
Bash

#!/bin/sh
[ ! -f "/usr/share/ucitrack/luci-app-sunpanel.json" ] && {
cat > /usr/share/ucitrack/luci-app-sunpanel.json << EEOF
{
"config": "sunpanel",
"init": "sunpanel"
}
EEOF
}
uci -q batch <<-EOF >/dev/null
delete ucitrack.@sunpanel[-1]
add ucitrack sunpanel
set ucitrack.@sunpanel[-1].init=sunpanel
commit ucitrack
EOF
/etc/init.d/sunpanel enable
exit 0