mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 08:55:13 +08:00
18 lines
371 B
Plaintext
18 lines
371 B
Plaintext
[ ! -f "/usr/share/ucitrack/luci-app-campusnet.json" ] && {
|
|
cat > /usr/share/ucitrack/luci-app-campusnet.json << EEOF
|
|
{
|
|
"config": "campusnet",
|
|
"init": "campusnet"
|
|
}
|
|
EEOF
|
|
}
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@campusnet[-1]
|
|
add ucitrack campusnet
|
|
set ucitrack.@campusnet[-1].init=campusnet
|
|
commit ucitrack
|
|
EOF
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|