#!/bin/bash
chmod a+r /dev/ttyLYS_ais_"$1"
if [[ $2 == "remove" ]] ; then
  logger "The USB device /dev/ttyLYS_ais_$1 has been disconnected"
else
  /usr/local/sbin/bounce-mux
  logger "This USB device is known as AIS and will be linked on /dev/ttyLYS_ais_$1"
fi
