summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/base-files/etc/init.d/sysled
blob: 76079f4eedeb4e0a71cc8c5ad1140ada96b9c31a (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 0x340fff > /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
}