summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/base-files/etc/init.d/sysled
blob: 9b0923496f78c6a38c514e639a86e206058bc0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh /etc/rc.common

START=99

start() {
        insmod /lib/modules/2.6.30.9/gpio_rtl8196c.ko
        echo 0x340c00 > /sys/module/gpio_rtl8196c/parameters/rtl8196c_mux
        echo 6 > /sys/class/gpio/export
        echo "out" > /sys/class/gpio/gpio6/direction
        echo "0" > /sys/class/gpio/gpio6/value
} 

stop() {
        rmmod gpio_rtl8196c
}