diff options
Diffstat (limited to 'etc/init.d/commissioning')
-rwxr-xr-x | etc/init.d/commissioning | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/etc/init.d/commissioning b/etc/init.d/commissioning index c04a51a..4fc7366 100755 --- a/etc/init.d/commissioning +++ b/etc/init.d/commissioning @@ -21,13 +21,11 @@ if [[ ENABLED == no ]] ; then fi fi -# /etc/default/no-${NAME} should point at /etc/default/.no-${NAME} -# and contain ENABLED="no". -# This will prevent commissioning on a factory reset -# but not on an image update for tighter security. -# If the device is to have no password at all, this file and -# link must be created, and ENABLED must be set to "no" -[ -f "/etc/default/no-${NAME}" ] && . "/etc/config/no-${NAME}" +# To disable commissioning across a factory reset (and image install): +# echo 'ENABLED="no"' >/var/config/.no-commissioning +# ln -sf /var/config/.no-commissioning /etc/default/no-commissioning + +[ -f "/etc/default/no-${NAME}" ] && . "/etc/default/no-${NAME}" case "$1" in |