1 #!/bin/sh /etc/rc.common
6 SERVICE_PID_FILE
=/var
/run
/owsip.pid
11 MODULE
=`lsmod | grep vmmc`
12 [ ! -z "$MODULE" ] ||
( insmod vmmc
; sleep 3 )
13 [ ! -c /dev
/vmmc10
] && {
14 mknod
/dev
/vmmc10 c
122 10
15 mknod
/dev
/vmmc11 c
122 11
16 mknod
/dev
/vmmc12 c
122 12
17 mknod
/dev
/vmmc13 c
122 13
18 mknod
/dev
/vmmc14 c
122 14
19 mknod
/dev
/vmmc15 c
122 15
20 mknod
/dev
/vmmc16 c
122 16
21 mknod
/dev
/vmmc17 c
122 17
22 mknod
/dev
/vmmc18 c
122 18
30 config_get gpio
"$cfg" gpio
31 config_get value
"$cfg" value
32 [ -n "gpio" ] ||
return 0
33 [ ! -f "/sys/class/gpio/gpio$gpio/direction" ] &&
34 echo "$gpio" > /sys
/class
/gpio
/export
35 [ -f "/sys/class/gpio/gpio$gpio/direction" ] && {
36 echo "out" > /sys
/class
/gpio
/gpio
$gpio/direction
37 echo "$value" > /sys
/class
/gpio
/gpio
$gpio/value
43 config_foreach relay_set relay
45 service_start
/usr
/bin
/owsip_ua
49 service_stop
/usr
/bin
/owsip_ua