cpy-2-zui 403 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. source $SNAP/helper/functions
  3. require_root
  4. cpy_2_zui
  5. if [ $? -ne 0 ]; then
  6. echo "Failed, exiting."
  7. exit 1
  8. fi
  9. if snapctl is-connected serial-port; then
  10. echo "Serial-port is connected, which require manual configuration in zwave-js-ui"
  11. else
  12. snapctl stop "${SNAP_NAME}" && snapctl stop --disable "${SNAP_NAME}"
  13. echo "Disabled ${SNAP_NAME}, you can now enable zwave-js-ui"
  14. fi