diff options
author | Karel Kočí <cynerd@email.cz> | 2020-09-23 11:42:19 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-09-23 11:43:02 +0200 |
commit | 5fee4bd515d55cb1ded1bed0c34fb89c22e01a87 (patch) | |
tree | 0718445739237630d35330ac3ac5c3cc11979daa /sentinel-proxy/files/uci-defaults | |
parent | bf24e13ee81a77aa39e2af11f4a778c7bef39f0b (diff) | |
download | openwrt-personal-pkgs-5fee4bd515d55cb1ded1bed0c34fb89c22e01a87.tar.gz openwrt-personal-pkgs-5fee4bd515d55cb1ded1bed0c34fb89c22e01a87.tar.bz2 openwrt-personal-pkgs-5fee4bd515d55cb1ded1bed0c34fb89c22e01a87.zip |
sentinel-proxy: try newer version
Diffstat (limited to 'sentinel-proxy/files/uci-defaults')
-rwxr-xr-x | sentinel-proxy/files/uci-defaults | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sentinel-proxy/files/uci-defaults b/sentinel-proxy/files/uci-defaults new file mode 100755 index 0000000..d144db5 --- /dev/null +++ b/sentinel-proxy/files/uci-defaults @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$(uci -q get sentinel.main)" != "main" ]; then + uci -q batch <<EOT + delete sentinel.main + set sentinel.main='main' + commit sentinel.main +EOT +fi |