summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files/etc/init.d/dsl_fs
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/base-files/etc/init.d/dsl_fs')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/init.d/dsl_fs13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/init.d/dsl_fs b/target/linux/lantiq/base-files/etc/init.d/dsl_fs
new file mode 100755
index 0000000000..975f5d8784
--- /dev/null
+++ b/target/linux/lantiq/base-files/etc/init.d/dsl_fs
@@ -0,0 +1,13 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2014 OpenWrt.org
+
+. /lib/functions.sh
+
+START=30
+start() {
+ MTD=$(find_mtd_index dsl_fw)
+ [ "$MTD" -gt 0 ] && {
+ mkdir -p /lib/firmware/dsl/
+ mount -t jffs2 /dev/mtdblock$MTD /lib/firmware/dsl/
+ }
+}