now with more argument support
This commit is contained in:
parent
178c5ba3a1
commit
30b50a204a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue