micbat / x-wrt

Automatically exported from code.google.com/p/x-wrt
0 stars 0 forks source link

Backup and Restore Page. Wont backup flash image when marking "Entire Flash" when using a USB root. #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When using Kamikaze 7.09
(http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/openwrt-brcm-2.4-squashfs.t
rx)
and
http://downloads.x-wrt.org/xwrt/kamikaze/7.09/brcm-2.4/webif_latest.ipk. I
go to the > System > Backup and Restore page and mark "Entire Flash". When
I press "Backup" I get transfered to a page that doesnt exist
(http://192.168.1.1/flash_.trx). This is -only- after I have moved my root
to usb. /sbin/init is (as taken from http://wiki.openwrt.org/UsbStorageHowto):

!/bin/sh boot_dev="/dev/scsi/host0/bus0/target0/lun0/part1"

for module in usbcore !/bin/sh
boot_dev="/dev/scsi/host0/bus0/target0/lun0/part1" for module in usbcore
ehci-hcd scsi_mod sd_mod usb-storage jbd ext3; do {

    insmod $module

}; done sleep 8s mount "$boot_dev" /mnt # if everything looks ok, do the
pivot root [ -x /mnt/sbin/init ] && {

    mount -o move /proc /mnt/proc && \ pivot_root /mnt /mnt/mnt && {

        mount -o move /mnt/dev /dev mount -o move /mnt/tmp /tmp mount -o
move /mnt/jffs2 /jffs2 2>&- mount -o move /mnt/sys /sys 2>&-

    }

} exec /bin/busybox init scsi_mod sd_mod usb-storage jbd ext3; do { 

Original issue reported on code.google.com by kemen04@gmail.com on 9 Jul 2008 at 8:52

GoogleCodeExporter commented 8 years ago

Original comment by kemen04@gmail.com on 17 Jul 2008 at 3:19