浏览代码

Fixed fan modes in g14control.sh

master
haemka 3 年前
父节点
当前提交
8450b90e31
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. +7
    -3
      g14control.sh

+ 7
- 3
g14control.sh 查看文件

@@ -94,15 +94,16 @@ fan() {

CHKMODE=$(cat ${INTERFACE})

notify-send -t 500 "Fan mode changed" \
notify-send "Fan mode changed" \
"${MODELIST[${CURRMODE}]} -> ${MODELIST[${CHKMODE}]}"
}

usage() {
echo "Usage: $0 [-d LEVEL|up|down] [-k LEVEL|up|down] [-f [MODE]] [-h]"
echo "Usage: $0 [-d LEVEL|up|down] [-k LEVEL|up|down] [-f MODE] [-F] [-h]"
}

while getopts "d:k:f:h" ARG; do

while getopts "d:k:f:Fh" ARG; do
case "${ARG}" in
d)
disp ${OPTARG}
@@ -110,6 +111,9 @@ while getopts "d:k:f:h" ARG; do
k)
kbd ${OPTARG}
;;
F)
fan ${OPTARG}
;;
f)
fan ${OPTARG}
;;


正在加载...
取消
保存