You've used the if [ "$tp_state" -eq 0 ] ; then line from my example but kept the TP_STATE variable name in the # Determine Touchpad state section.
Sorry, that's my fault. I prefer to use lower case with custom variable names to avoid confusion or conflict with system variables, which are usually upper case.
|