TEMPDIR fix and tweak teh uInird mv, corrupted boot partition

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 766c214875
commit e60180c556

@ -376,8 +376,8 @@ fi
beagle_user_cmd beagle_user_cmd
sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Reset Nand" -d /tmp/user.cmd ${DIR}/disk/user.scr sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Reset Nand" -d /tmp/user.cmd ${TEMPDIR}/disk/user.scr
sudo cp /tmp/user.cmd ${DIR}/disk/user.cmd sudo cp /tmp/user.cmd ${TEMPDIR}/disk/user.cmd
cat > /tmp/readme.txt <<script_readme cat > /tmp/readme.txt <<script_readme

@ -24,9 +24,9 @@ index 61bc6ae..a889e23 100644
+ if [ -e /etc/rcn.conf ]; then + if [ -e /etc/rcn.conf ]; then
+ mkdir -p /tmp/mmc + mkdir -p /tmp/mmc
+ mount /dev/mmcblk0p1 /tmp/mmc + mount /dev/mmcblk0p1 /tmp/mmc
+ cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr + rm -f /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr + cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
+ mv /tmp/mmc/uInitrd /tmp/mmc/uInitrd.net + rm -f /tmp/mmc/uInitrd
+ mv /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd + mv /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd
+ umount /tmp/mmc + umount /tmp/mmc
+ +

Loading…
Cancel
Save