]> cvs.zerfleddert.de Git - hmcfgusb/blame - reset-hmmoduart.sh
firmware: fix maximum size
[hmcfgusb] / reset-hmmoduart.sh
CommitLineData
3e34d2ce
MG
1#!/bin/bash
2
3if [ "`id -u`" != "0" ]; then
4 exec sudo "${0}"
5fi
6
7if [ ! -d "/sys/class/gpio/gpio18" ]; then
8 echo 18 >/sys/class/gpio/export
9fi
10
11echo out >/sys/class/gpio/gpio18/direction
12echo 0 >/sys/class/gpio/gpio18/value
13sleep 0.2
14echo 1 >/sys/class/gpio/gpio18/value
15sleep 2
Impressum, Datenschutz