op-packages/luci-app-eqosplus/root/etc/uci-defaults/luci-eqosplus
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

22 lines
501 B
Bash

#!/bin/sh
[ ! -f "/usr/share/ucitrack/luci-app-eqosplus.json" ] && {
cat > /usr/share/ucitrack/luci-app-eqosplus.json << EEOF
{
"config": "eqosplus",
"init": "eqosplus"
}
EEOF
}
chmod +x /etc/init.d/eqosplus /usr/bin/eqosplus*
uci -q batch <<-EOF >/dev/null
delete ucitrack.@eqosplus[-1]
add ucitrack eqosplus
set ucitrack.@eqosplus[-1].init=eqosplus
commit ucitrack
EOF
[ -s /etc/config/eqosplus ] || echo "config eqosplus" > /etc/config/eqosplus
rm -f /tmp/luci-indexcache
exit 0