#!/bin/sh
### BEGIN INIT INFO
# Provides:          gpio
# Required-Start:    $syslog
# Required-Stop:     $syslog 
# Should-Start:      
# Default-Start:     S
# Default-Stop:
# Short-Description: Init gpio system.
# Description:       Init gpio system.
### END INIT INFO

PATH=/lib/init:/sbin:/bin

#test output
echo 43 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio43/direction
echo 0 > /sys/class/gpio/gpio43/value

#battery input
echo 54 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio54/direction

#power input
echo 57 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio57/direction

echo 600000 > /proc/sys/vm/dirty_writeback_centisecs
echo 600000 > /proc/sys/vm/dirty_expire_centisecs
