diff options
author | Artur Artamonov <freeartman@wechall.net> | 2013-07-15 09:43:01 +0300 |
---|---|---|
committer | Artur Artamonov <freeartman@wechall.net> | 2013-07-15 09:43:01 +0300 |
commit | 33cb3550f47cdae26bb1e756cd01e9a31ff4055b (patch) | |
tree | 5f7ac87ce551d72c079f2d4449620b0d1cf766dc /target/linux | |
parent | 87ab4bc91f9cf3e298f1163ceaf9913ec9e8bb62 (diff) |
[gpio] After initialisation sysled is on
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/realtek/base-files/etc/init.d/sysled | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/realtek/base-files/etc/init.d/sysled b/target/linux/realtek/base-files/etc/init.d/sysled new file mode 100644 index 000000000..76079f4ee --- /dev/null +++ b/target/linux/realtek/base-files/etc/init.d/sysled @@ -0,0 +1,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 +}
\ No newline at end of file |