Skip to content

Instantly share code, notes, and snippets.

@mims92
Created January 7, 2018 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mims92/fa2bb888cd410e8282f0b8bda4c1bdf9 to your computer and use it in GitHub Desktop.
Save mims92/fa2bb888cd410e8282f0b8bda4c1bdf9 to your computer and use it in GitHub Desktop.
Odroid XU4 - Bash - Turn the fan on or off
# 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