diff --git a/README.md b/README.md index 6d3788c5a60069c17416ca7ee9305576d17ced10..5b6f45d7f0dc2a8b5d51a3c00ba5d328903e571b 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ Adapt and add this block to your site.conf: ``` ssid_changer = { enabled = true, - switch_timeframe = 30, -- only once every timeframe (in minutes) the SSID will change to OFFLINE - -- set to 1440 to change once a day - -- set to 1 minute to change every time the router gets offline - first = 5, -- the first few minutes directly after reboot within which an Offline-SSID always may be activated (must be <= switch_timeframe) - prefix = 'FF_OFFLINE_', -- use something short to leave space for the nodename (no '~' allowed!) - suffix = 'nodename', -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none' + switch_timeframe = 30, -- only once every timeframe (in minutes) the SSID will change to the Offline-SSID + -- set to 1440 to change once a day + -- set to 1 minute to change every time the router gets offline + first = 5, -- the first few minutes directly after reboot within which an Offline-SSID always may be activated (must be <= switch_timeframe) + prefix = 'FF_Offline_', -- use something short to leave space for the nodename (no '~' allowed!) + suffix = 'nodename', -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none' tq_limit_enabled = false, -- if false, the offline SSID will only be set if there is no gateway reacheable -- upper and lower limit to turn the offline_ssid on and off diff --git a/gluon-ssid-changer/files/lib/gluon/ssid-changer/ssid-changer.sh b/gluon-ssid-changer/files/lib/gluon/ssid-changer/ssid-changer.sh index 96267c6627a94f36d5f1b395fa4dd5988dae07bb..1939582f37afa5b21543edb3b9a6c3c3e99110fc 100755 --- a/gluon-ssid-changer/files/lib/gluon/ssid-changer/ssid-changer.sh +++ b/gluon-ssid-changer/files/lib/gluon/ssid-changer/ssid-changer.sh @@ -12,7 +12,7 @@ UT=$(sed 's/\..*//g' /proc/uptime) [ $UT -gt 60 ] || safety_exit 'less than one minute' [ $(find /var/run -name hostapd-phy* | wc -l) -gt 0 ] || safety_exit 'no hostapd-phy*' -# only once every timeframe minutes the SSID will change to OFFLINE +# only once every timeframe minutes the SSID will change to the Offline-SSID # (set to 1 minute to change immediately every time the router gets offline) MINUTES="$(uci -q get ssid-changer.settings.switch_timeframe)" : ${MINUTES:=30} @@ -25,7 +25,7 @@ FIRST="$(uci -q get ssid-changer.settings.first)" # the Offline-SSID will start with this prefix use something short to leave space for the nodename # (no '~' allowed!) PREFIX="$(uci -q get ssid-changer.settings.prefix)" -: ${PREFIX:='FF_OFFLINE_'} +: ${PREFIX:='FF_Offline_'} if [ "$(uci -q get ssid-changer.settings.enabled)" = '0' ]; then DISABLED='1' diff --git a/gluon-ssid-changer/files/lib/gluon/upgrade/500-ssid-changer b/gluon-ssid-changer/files/lib/gluon/upgrade/500-ssid-changer index 70b01eeb51dd107198fbf99f2313110e46d34940..931c8c78a20e13ea1430763d92a69e69e5446009 100755 --- a/gluon-ssid-changer/files/lib/gluon/upgrade/500-ssid-changer +++ b/gluon-ssid-changer/files/lib/gluon/upgrade/500-ssid-changer @@ -13,7 +13,7 @@ elseif not uci:get('ssid-changer', 'settings', 'enabled') then enabled = '1', switch_timeframe = site.ssid_changer.switch_timeframe or '30', first = site.ssid_changer.first or '5', - prefix = site.ssid_changer.prefix or 'FF_OFFLINE_', + prefix = site.ssid_changer.prefix or 'FF_Offline_', suffix = site.ssid_changer.suffix or 'nodename', tq_limit_enabled = site.ssid_changer.tq_limit_enabled or '0', tq_limit_max = site.ssid_changer.tq_limit_max or '45',