S12remoteaccessory 364 B

123456789101112131415161718
  1. #!/bin/sh
  2. source /opt/wz_mini/etc/rc.common
  3. source /opt/wz_mini/wz_mini.conf
  4. remote() {
  5. wait_for_wlan_ip
  6. if [[ "$REMOTE_SPOTLIGHT" == "true" ]]; then
  7. /opt/wz_mini/bin/socat pty,link=/dev/ttyUSB0,raw tcp:"$REMOTE_SPOTLIGHT_HOST":9000 &
  8. echo "Remote accessory support enabled"
  9. else
  10. echo "Remote accessory support disabled"
  11. fi
  12. }
  13. remote &