diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-05 09:52:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-05 09:52:30 +0000 |
commit | 88d2ed113453e97d369bb3a1a61fbd5bb89b2085 (patch) | |
tree | 6bd479e6fb9f3ccdd9153b36d3dda2e84c05c3bd /target/linux/lantiq/base-files/etc | |
parent | 147309332b53f8101e5fd749e0ec06ec2f5c1d3a (diff) | |
download | master-187ad058-88d2ed113453e97d369bb3a1a61fbd5bb89b2085.tar.gz master-187ad058-88d2ed113453e97d369bb3a1a61fbd5bb89b2085.tar.bz2 master-187ad058-88d2ed113453e97d369bb3a1a61fbd5bb89b2085.zip |
lantiq: get rid of the dsl_fw mtd partition
Now that we have redistributable vdsl/adsl firmware blobs in /lib/firmware,
we can drop the dsl_fw partition and extend the firmware partition.
Signed-off-by: Andre Heider <a.heider@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47783 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files/etc')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/init.d/dsl_fs | 35 |
1 files changed, 0 insertions, 35 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 deleted file mode 100755 index ccba4ae843..0000000000 --- a/target/linux/lantiq/base-files/etc/init.d/dsl_fs +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2014 OpenWrt.org - -. $IPKG_INSTROOT/lib/functions.sh - -START=30 - -boot() { - MTD=$(find_mtd_index dsl_fw) - - grep /lib/firmware/lantiq /proc/mounts && umount /lib/firmware/lantiq - - mkdir -p /lib/firmware/lantiq - [ "$MTD" -gt 0 ] || return 0 - - mount -t tmpfs none /lib/firmware/lantiq - case "$(dd if=/dev/mtd$MTD bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')" in - 1985) - mkdir -p /tmp/fw_mnt - mount -t jffs2 /dev/mtdblock$MTD /tmp/fw_mnt - cp -a /tmp/fw_mnt/*.bin /lib/firmware/lantiq/ - umount /tmp/fw_mnt - rmdir /tmp/fw_mnt - ;; - 1f8b) - tar xz -C /lib/firmware/lantiq < /dev/mtd$MTD - ;; - *) - echo "No DSL firmware detected in /dev/mtd$MTD (dsl_fw)" - return 0 - ;; - esac - - [ -e /lib/firmware/vdsl.bin ] || ln -s /lib/firmware/lantiq/vr9_dsl_fw_annex_b.bin /lib/firmware/vdsl.bin -} |