Use numeric prefixes for uci-defaults scripts
[project/luci.git] / applications / luci-app-udpxy / root / etc / uci-defaults / 40_luci-udpxy
1 #!/bin/sh
2
3 # needed for "Save and Apply" to restart udpxy
4 uci -q batch <<-EOF >/dev/null
5         delete ucitrack.@udpxy[-1]
6         add ucitrack udpxy
7         set ucitrack.@udpxy[-1].init="udpxy"
8         commit ucitrack
9 EOF
10
11 rm -f /tmp/luci-indexcache
12 exit 0