Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU nano 4.8 rc.local
- # Set the front LED to on to show boot finished
- # Bridge (Orange), Router (Blue), Gateway (Cyan)
- filename="/tmp/sysinfo/board_name"
- while read -r line; do
- mode="$line"
- done < "$filename"
- case $mode in
- "itus_shield-bridge")
- gpio=9
- ;;
- "itus_shield-router")
- gpio=11
- ;;
- "itus_shield-gateway")
- gpio=10
- ;;
- esac
- echo $gpio > /sys/class/gpio/export
- echo out > /sys/class/gpio/gpio$gpio/direction
- echo 0 > /sys/class/gpio/gpio$gpio/value
- echo $gpio > /sys/class/gpio/unexport
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement