Skip to content
Snippets Groups Projects
Commit 8a7b94a8 authored by rubo77's avatar rubo77
Browse files

cleanup code, indentions and some texts in Readme and Makefile

parent 716b1800
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ This package adds a script to change the SSID when there is no connection to any
gateway. This Offline-SSID can be generated from the node's hostname with the
first and last part of the node name or the MAC address allowing observers to
recognize which node does not have a connection to a gateway. This script is
called once every minute by ``micron.d`` and check gateway-connectivity. It will
called once every minute by ``micrond`` and check gateway-connectivity. It will
change the SSID to the Offline-SSID after the node lost gateway connectivity for
several consecutive checks. As soon as the gateway-connectivity is back it
toggles back to the original SSID.
......
......@@ -12,11 +12,11 @@ endef
define Package/$(PKG_NAME)/description
Script to change the SSID to an Offline-SSID when there is no connection to
any gateway. This SSID can be generated from the nodes hostname with the first
and last part of the nodename or the mac address, to allow observers to
recognise which node is down. The script is called once a minute by micron.d
and it will change from online to offline-SSID maximum once every (definable)
timeframe.
any gateway. This SSID can be generated from the node's hostname with the
first and last part of the nodename or the mac address, to allow observers to
recognise which node is down. The script is called once a minute by micrond
and it will change from online to Offline-SSID once per definable timeframe at
most.
endef
......
......@@ -7,7 +7,7 @@ local f = Form(pkg_i18n.translate('Offline-SSID'))
local s = f:section(Section, nil, pkg_i18n.translate(
'Here you can enable to automatically change the SSID to the Offline-SSID '
.. 'when the node has no connection to the selected Gateway.'
.. 'when the node has no connection to the selected Gateway.'
))
local enabled = s:option(Flag, 'enabled', pkg_i18n.translate('Enabled'))
......
......@@ -4,9 +4,7 @@ local site = require 'gluon.site'
local uci = require('simple-uci').cursor()
if site.ssid_changer == nil then
-- print('ssid_changer not defined in site.conf')
else
if site.ssid_changer ~= nil then
local site_enabled = site.ssid_changer.enabled() or '1'
uci:section('ssid-changer', 'settings', 'settings', {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment