summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/realtek/base-files/etc/init.d/sysled15
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