diff options
Diffstat (limited to 'applications/luci-app-nut/root/etc/uci-defaults/40_luci-nut')
-rwxr-xr-x | applications/luci-app-nut/root/etc/uci-defaults/40_luci-nut | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/applications/luci-app-nut/root/etc/uci-defaults/40_luci-nut b/applications/luci-app-nut/root/etc/uci-defaults/40_luci-nut deleted file mode 100755 index 45a1fbb431..0000000000 --- a/applications/luci-app-nut/root/etc/uci-defaults/40_luci-nut +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -version="$(opkg status nut|grep 'Version: '|cut -f2 -d\ )" -release="$(echo $version|cut -f2 -d-)" - -if [ "$version" = "2.7.4" ] && [ "$release" -lt 8 ]; then - uci -q batch <<-EOF >/dev/null - delete ucitrack.@nut_server[-1] - delete ucitrack.@nut_monitor[-1] - delete ucitrack.@nut_cgi[-1] - add ucitrack nut_server - set ucitrack.@nut_server[-1].init=nut-server - add ucitrack nut_monitor - set ucitrack.@nut_monitor[-1].init=nut-monitor - add ucitrack nut_cgi - set ucitrack.@nut_cgi[-1].init=nut-cgi - commit ucitrack -EOF -fi - -exit 0 |