telldus/telldus-core/tdadmin/udev.sh
Lauri Aarnio 11950d6c2d Fixed a nonportable bash'ism: Use "=" for comparing strings
- the "==" operator is specific to bash, use "=" instead;
  it is compatible with the "test" utility and other shells
  (and posix, too)
2012-02-27 11:24:40 +01:00

9 lines
390 B
Bash
Executable file

#!/bin/sh
if [ "${ID_VENDOR_ID}" = "1781" ]; then
if [ "${ACTION}" = "add" ]; then
@CMAKE_INSTALL_PREFIX@/sbin/tdadmin controller connect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
elif [ "${ACTION}" = "remove" ]; then
@CMAKE_INSTALL_PREFIX@/sbin/tdadmin controller disconnect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
fi
fi