aboutsummaryrefslogtreecommitdiff
path: root/local/bin/asus-fan
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-04-07 14:56:22 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-04-07 14:56:22 +0200
commita793b23435567f2d4f49846196ceebcc47cd764c (patch)
tree5f542d40b11c55ff851724cbab21c27ba7a8ff0d /local/bin/asus-fan
parent6384224250a62e8b1ea913934db5dbae536ce153 (diff)
downloadmyconfigs-a793b23435567f2d4f49846196ceebcc47cd764c.tar.gz
myconfigs-a793b23435567f2d4f49846196ceebcc47cd764c.tar.bz2
myconfigs-a793b23435567f2d4f49846196ceebcc47cd764c.zip
Remove stuff not needed on server
Diffstat (limited to 'local/bin/asus-fan')
-rwxr-xr-xlocal/bin/asus-fan28
1 files changed, 0 insertions, 28 deletions
diff --git a/local/bin/asus-fan b/local/bin/asus-fan
deleted file mode 100755
index 09e54f1..0000000
--- a/local/bin/asus-fan
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# TODO this probably should be auto detected, because hwmon number can change
-HWMON=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon1
-
-if [ "$(whoami)" != "root" ]; then
- echo "Run $0 only with root privileges"
- exit -1
-fi
-
-case "$1" in
- -h|--help)
- echo "Usage: $0 -h|full|auto"
- echo "This script controls asus hwmon"
- echo " full - Full throttle"
- echo " auto - Automatic hardware control"
- ;;
- full)
- echo 1 > $HWMON/pwm1_enable
- echo 255 > $HWMON/pwm1
- ;;
- auto)
- echo 0 > $HWMON/pwm1_enable
- ;;
- *)
- echo "Unknown or no option given!"
- exit -2
- ;;
-esac