Browse Source

now with more argument support

master
Von Random 5 months ago
parent
commit
30b50a204a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      touchpad-toggle

+ 1
- 1
touchpad-toggle View File

@@ -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