install 624 B

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