View Single Post
Posts: 111 | Thanked: 23 times | Joined on Sep 2008 @ Singapore
#43
The command "sh -x /root/.bin/partition-finder.sh 2> output" never returns to prompt. I pressed ^C to terminate it after 1minute.

Contents of output.
+ df /mnt/initfs
+ grep initfs
+ awk {print $1}
+ export INITFS=/dev/mtdblock4
+ test /dev/mtdblock4 = /dev/mtdblock4
+ df
+ grep /dev/mmcblk0p2
+ + awk -F . {print $1"MB"}
awk {print $3 / 1024}
+ export USED=
+ df
+ awk {print $4 / 1024}
+ awk -F . {print $1"MB"}
+ grep /dev/mmcblk0p2
+ export AVAIL=
+ echo /dev/mtdblock4 "Size:256MB Used: Free:AVAIL Type:jffs2"
+ export LOOP=0
+ parted /dev/mmcblk1 print devices
+ grep -v mtdblock
+ sed s/ /-/