aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/init.d
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-04-11 20:40:24 +0000
committerJohn Crispin <john@openwrt.org>2014-04-11 20:40:24 +0000
commit390e856cb2d99631be05750d888cf4aa0aef80f1 (patch)
treeede39e6bf97ae57f7e68ab90a081ab5ad311ecee /target/linux/lantiq/base-files/etc/init.d
parent7b960069a2f6ebee63bdb5a33522dae4ade5e8bf (diff)
downloadupstream-390e856cb2d99631be05750d888cf4aa0aef80f1.tar.gz
upstream-390e856cb2d99631be05750d888cf4aa0aef80f1.tar.bz2
upstream-390e856cb2d99631be05750d888cf4aa0aef80f1.zip
lantiq: more vdsl related cleanups
* atm module needs to be loaded before linux-atm * use absolute firmware paths * extended validation * add a script for mounting an optional firmware partition Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 40460
Diffstat (limited to 'target/linux/lantiq/base-files/etc/init.d')
-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/
+ }
+}