summaryrefslogtreecommitdiff
path: root/sentinel-proxy/files/init
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-12-09 12:51:50 +0100
committerKarel Kočí <cynerd@email.cz>2021-12-09 12:51:50 +0100
commit45c300126e4a1f72eba94791f8da27e7082c2ec6 (patch)
tree338afb0530a7bd87e0b99937eee510fcb7540228 /sentinel-proxy/files/init
parent3df1aad296a94639ac36d3da87d52c27a26053a8 (diff)
downloadopenwrt-personal-pkgs-45c300126e4a1f72eba94791f8da27e7082c2ec6.tar.gz
openwrt-personal-pkgs-45c300126e4a1f72eba94791f8da27e7082c2ec6.tar.bz2
openwrt-personal-pkgs-45c300126e4a1f72eba94791f8da27e7082c2ec6.zip
sentinel-proxy: remove testing version
Diffstat (limited to 'sentinel-proxy/files/init')
-rwxr-xr-xsentinel-proxy/files/init30
1 files changed, 0 insertions, 30 deletions
diff --git a/sentinel-proxy/files/init b/sentinel-proxy/files/init
deleted file mode 100755
index d8df253..0000000
--- a/sentinel-proxy/files/init
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-USE_PROCD=1
-START=95
-STOP=10
-
-start_service() {
- source /lib/functions/sentinel.sh
- agreed_with_eula || return 1
-
- config_load sentinel
- local device_token
- config_get device_token main device_token ""
- if ! sentinel-device-token --validate "${device_token}" --quite; then
- device_token="$(sentinel-device-token --create --quite)";
- uci -q set sentinel.main.device_token="${device_token}";
- uci -q commit sentinel.main;
- echo "New device token created" >&2;
- fi
-
- cat > "/tmp/etc/sentinel-proxy.cfg" <<-EOF
- device_token = "${device_token}"
-EOF
-
- procd_open_instance
- procd_set_param command /bin/sh -c 'sentinel-certgen certs --skip-renew && exec sentinel-proxy'
- procd_set_param respawn 600 5 5
- procd_set_param file /etc/config/sentinel
- procd_close_instance
-}