diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-04-21 20:37:58 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-05-29 23:50:32 +0200 |
commit | 393817df5d7046fadf137f9b0a363cb00551d2de (patch) | |
tree | aabe1f679c7b1467875d05dddbee3beba8f40058 /package/system/procd/files/nand-preinit.sh | |
parent | 8008765f1f4d03737d5aeb07bb9a9bf4d0321564 (diff) | |
download | upstream-393817df5d7046fadf137f9b0a363cb00551d2de.tar.gz upstream-393817df5d7046fadf137f9b0a363cb00551d2de.tar.bz2 upstream-393817df5d7046fadf137f9b0a363cb00551d2de.zip |
procd: remove procd-nand package
We always want to support staged upgrades now, so it's better to include
upgraded into the main package. /lib/upgrade/nand.sh is moved to
base-files.
The procd-nand-firstboot package is removed for now, it may return later
as a separate package.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'package/system/procd/files/nand-preinit.sh')
-rw-r--r-- | package/system/procd/files/nand-preinit.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/package/system/procd/files/nand-preinit.sh b/package/system/procd/files/nand-preinit.sh deleted file mode 100644 index cf596246d1..0000000000 --- a/package/system/procd/files/nand-preinit.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Copyright (C) 2014 OpenWrt.org - -nand_takeover() { - . /lib/upgrade/nand.sh - mtd=$(find_mtd_index "$CI_UBIPART") - esize=$(cat /proc/mtd | grep mtd$mtd |cut -d" " -f 3) - [ -z "$esize" ] && return 1 - esize=$(printf "%d" 0x$esize) - for a in `seq 0 64`; do - mtd -o $((a * esize)) -l 400 dump /dev/mtd$mtd > /tmp/takeover.hdr - MAGIC=$(dd if=/tmp/takeover.hdr bs=1 skip=261 count=5 2> /dev/null) - SIZE=$(printf "%d" 0x$(dd if=/tmp/takeover.hdr bs=4 count=1 2> /dev/null | hexdump -v -n 4 -e '1/1 "%02x"')) - [ "$MAGIC" = "ustar" ] && { - mtd -o $((a * esize)) -l $((SIZE + 4)) dump /dev/mtd$mtd | dd bs=1 skip=4 of=/tmp/sysupgrade.tar - nand_do_upgrade_stage2 /tmp/sysupgrade.tar - } - done -} - -boot_hook_add initramfs nand_takeover |