Browse Source

now with more argument support

master
Von Random 3 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'
4 4
 
5 5
 (($#)) || [[ ! -r $STATUSFILE ]]
6 6
 
7
-case $? in
7
+case ${1:-$?} in
8 8
     (1|'on') toggle='enable' flag_action=('/usr/bin/rm' '-f');;
9 9
     (0|'off') toggle='disable' flag_action=('/usr/bin/touch');;
10 10
     (*) exit 1;;

Loading…
Cancel
Save