mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-08-02 23:49:34 +08:00
21 lines
358 B
Bash
21 lines
358 B
Bash
#!/bin/sh
|
|
[ ! -f "/usr/share/ucitrack/luci-app-ddnsto.json" ] && {
|
|
cat > /usr/share/ucitrack/luci-app-ddnsto.json << EEOF
|
|
{
|
|
"config": "ddnsto",
|
|
"init": "ddnsto"
|
|
}
|
|
EEOF
|
|
}
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@ddnsto[-1]
|
|
add ucitrack ddnsto
|
|
set ucitrack.@ddnsto[-1].init=ddnsto
|
|
commit ucitrack
|
|
EOF
|
|
|
|
/etc/init.d/ddnsto enable
|
|
|
|
exit 0
|