Browse Source

now with more argument support

master
Von Random 3 years ago
parent
commit
30b50a204a
  1. 2
      touchpad-toggle

2
touchpad-toggle

@ -4,7 +4,7 @@ DEVNAME='ETPS/2 Elantech Touchpad'
(($#)) || [[ ! -r $STATUSFILE ]]
case $? in
case ${1:-$?} in
(1|'on') toggle='enable' flag_action=('/usr/bin/rm' '-f');;
(0|'off') toggle='disable' flag_action=('/usr/bin/touch');;
(*) exit 1;;

Loading…
Cancel
Save