Skip to content

Commit 30b50a2

Browse files
author
Von Random
committed
now with more argument support
1 parent 178c5ba commit 30b50a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

touchpad-toggle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DEVNAME='ETPS/2 Elantech Touchpad'
44

55
(($#)) || [[ ! -r $STATUSFILE ]]
66

7-
case $? in
7+
case ${1:-$?} in
88
(1|'on') toggle='enable' flag_action=('/usr/bin/rm' '-f');;
99
(0|'off') toggle='disable' flag_action=('/usr/bin/touch');;
1010
(*) exit 1;;

0 commit comments

Comments
 (0)