12 files changed:
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
[ -d /tmp/wget2nand-rootfs ] && {
echo "/tmp/wget2nand-rootfs already exists"
[ -d /tmp/wget2nand-rootfs ] && {
echo "/tmp/wget2nand-rootfs already exists"
mtd=$(find_mtd_chardev $part)
[ -n "$mtd" ] || \
mtd=$(find_mtd_chardev $part)
[ -n "$mtd" ] || \
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
wget2nand_dir=/tmp/wget2nand
mnt_kernel=$wget2nand_dir/mnt_kernel
wget2nand_dir=/tmp/wget2nand
mnt_kernel=$wget2nand_dir/mnt_kernel
do_button () {
local button
local action
do_button () {
local button
local action
set_boot_wait() {
[ -x "/usr/sbin/nvram" ] && {
set_boot_wait() {
[ -x "/usr/sbin/nvram" ] && {
mtd=$(find_mtd_part $part)
[ -n "$mtd" ] || \
mtd=$(find_mtd_part $part)
[ -n "$mtd" ] || \
# Load the modules we have in initramfs, this should
# make the media accessible, but, it may take some time
# Load the modules we have in initramfs, this should
# make the media accessible, but, it may take some time
load_modules /etc/modules /etc/modules.d/*
#wait 10 seconds for the disc to show up
load_modules /etc/modules /etc/modules.d/*
#wait 10 seconds for the disc to show up
mtd=$(find_mtd_part $part)
[ -n "$mtd" ] || \
mtd=$(find_mtd_part $part)
[ -n "$mtd" ] || \
mtd=$(find_mtd_part $part)
[ -n "$mtd" ] || \
mtd=$(find_mtd_part $part)
[ -n "$mtd" ] || \
. /lib/ramips.sh
. /lib/functions/uci-defaults.sh
. /lib/ramips.sh
. /lib/functions/uci-defaults.sh
copy_kernel() {
local input="$1"
copy_kernel() {
local input="$1"
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
# Licence GPL V2
# Author david.goodenough@linkchoose.co.uk
# Based on cf2nand from RB532 support
[ -d /tmp/wget2nand ] && {
echo "/tmp/wget2nand already exists"
[ -d /tmp/wget2nand ] && {
echo "/tmp/wget2nand already exists"