now with more argument support

This commit is contained in:
Von Random 2019-03-12 14:31:30 +03:00
parent 178c5ba3a1
commit 30b50a204a

View file

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