1 #!/bin/sh /etc/rc.common
6 SERVICE_PID_FILE
=/var
/run
/owsip.pid
14 config_get gpio
"$cfg" gpio
15 config_get value
"$cfg" value
16 [ -n "gpio" ] ||
return 0
17 [ ! -f "/sys/class/gpio/gpio$gpio/direction" ] &&
18 echo "$gpio" > /sys
/class
/gpio
/export
19 [ -f "/sys/class/gpio/gpio$gpio/direction" ] && {
20 echo "out" > /sys
/class
/gpio
/gpio
$gpio/direction
21 echo "$value" > /sys
/class
/gpio
/gpio
$gpio/value
27 config_foreach relay_set relay
28 service_start
/usr
/bin
/owsip_ua
32 service_stop
/usr
/bin
/owsip_ua