install 644 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. export DAEMONIZED=1
  3. source $SNAP/helper/functions
  4. set -e
  5. # AS OF S0+n NETWORK KEY IS NOT USED ANYMORE
  6. # SETTINGS_KEY=$(same_network_key "")
  7. #
  8. # if [ $? -eq 0 ]; then
  9. # SETTINGS_KEY=$(cat /dev/urandom | LC_ALL=C tr -dc '0-9A-F' | fold -w 32 | head -n 1)
  10. # fi
  11. #
  12. # # Not needed anymore as of ZWAVEJS_EXTERNAL_CONFIG ?
  13. # # ensure_zwavejs_config
  14. #
  15. # testnset_config "network.key" "${SETTINGS_KEY}"
  16. settings_key=$(same_network_key "")
  17. if [ $? -eq 0 ]; then
  18. settings_key=$(cat /dev/urandom | lc_all=c tr -dc '0-9a-f' | fold -w 32 | head -n 1)
  19. fi
  20. test_default_config
  21. snapctl stop --disable "${SNAP_NAME}.${SNAP_NAME}"