14 lines
334 B
Bash
Executable File
14 lines
334 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Export GPIO10 if needed
|
|
[ -d /sys/class/gpio/gpio10 ] || echo 10 > /sys/class/gpio/export
|
|
echo out > /sys/class/gpio/gpio10/direction
|
|
|
|
#Toggle GPIO10 pin (to reset MUX)
|
|
echo 1 > /sys/class/gpio/gpio10/value
|
|
echo 0 > /sys/class/gpio/gpio10/value
|
|
|
|
|
|
#Power Reset
|
|
echo 1 > /sys/devices/platform/dell-s6000-cpld.0/power_reset
|