16 lines
310 B
Bash
Executable File
16 lines
310 B
Bash
Executable File
#! /bin/sh
|
|
|
|
ntpdate -q 0.rhel.pool.ntp.org
|
|
|
|
echo 36 >/sys/class/gpio/export
|
|
echo in >/sys/class/gpio/gpio36/direction
|
|
|
|
echo 37 >/sys/class/gpio/export
|
|
echo in >/sys/class/gpio/gpio37/direction
|
|
|
|
echo 38 >/sys/class/gpio/export
|
|
echo in >/sys/class/gpio/gpio38/direction
|
|
|
|
sleep 120
|
|
ntpdate -q 0.rhel.pool.ntp.org
|