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)
This commit is contained in:
Lauri Aarnio 2012-02-25 12:59:20 +02:00 committed by Micke Prag
parent f0a07fd424
commit 11950d6c2d

View file

@ -1,9 +1,9 @@
#!/bin/sh
if [ "${ID_VENDOR_ID}" == "1781" ]; then
if [ "${ACTION}" == "add" ]; then
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
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