Created
January 7, 2018 20:23
-
-
Save mims92/fa2bb888cd410e8282f0b8bda4c1bdf9 to your computer and use it in GitHub Desktop.
Odroid XU4 - Bash - Turn the fan on or off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fan [on|off] | |
#!/bin/bash | |
if [ "${1}" == "on" ]; then | |
echo "0" > /sys/devices/odroid_fan.14/fan_mode | |
elif [ "${1}" == "off" ]; then | |
echo "1" > /sys/devices/odroid_fan.14/fan_mode | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment