All pastes #808695 Raw Edit

Etwas

public text v1 · immutable
·published 2007-12-07 20:50 UTC
rendered paste body
#!/bin/sh
# SD-Card einbinden ROM
####################
# device der neuen Boot Partition
boot_dev="/dev/mmc/disc0/part1"

# module für mmc/sd dem ext2 filesystem
sleep 5
insmod mmc
sleep 2
insmod ext2
sleep 2

# sd/mmc mounten
mount "$boot_dev" /mnt
sleep 2

# wenn die neue Boot-Partition erfolgreich gemountet wurde -> pivot root
# busybox pivot_root /mnt /mnt/mnt  bedeutet:  mach aus /mnt /  und  aus / /mnt
[ -x /mnt/sbin/init ] && {
        mount -o move /proc /mnt/proc && \
        busybox pivot_root /mnt /mnt/mnt && {
                mount -o move /mnt/dev /dev
                mount -o move /mnt/tmp /tmp
                mount -o move /mnt/rom/jffs /jffs 2>&-
                mount -o move /mnt/rom /rom 2>&-
        }
}
# zum schluss INIT ausführen von der sd/mmc card.
exec /bin/busybox init