luci-app-ddns: Update to support ddns-scripts 2.1.0-1
[project/luci.git] / applications / luci-ddns / root / etc / uci-defaults / luci-ddns
1 #!/bin/sh
2
3 # no longer needed for "Save and Apply" to restart ddns
4 uci -q batch <<-EOF >/dev/null
5         delete ucitrack.@ddns[-1]
6         commit ucitrack
7 EOF
8
9 # make helper script executable
10 chmod 755 /usr/lib/ddns/dynamic_dns_lucihelper.sh
11
12 # update application section for luci-app-ddns
13 uci -q get ddns.global > /dev/null || uci -q set ddns.global='ddns'
14 uci -q get ddns.global.date_format > /dev/null || uci -q set ddns.global.date_format='%F %R'
15 uci -q get ddns.global.log_lines > /dev/null || uci -q set ddns.global.log_lines='250'
16 uci -q commit ddns
17
18 rm -f /tmp/luci-indexcache
19 exit 0