3 usb=`blkid |grep bs-rescue|cut -d: -f1`
14 if [ -f disklist ];then
17 if [ -f alldisks ];then
24 sed -i 's/DIALOG/'$DIALOG'/g' dialogtest
25 fdisk -l|grep "/dev"|grep -v loop|grep -v md|grep -v mapper|grep -v $usb|while read line;do
26 b=`echo $line |cut -d" " -f1|cut -c 1`
28 if [ "$b" = "/" ];then
33 line=`echo $line |cut -d" " -f$f`
36 echo $X | egrep '^[0-9]+$' >/dev/null 2>&1
37 if [ "$?" -eq "0" ]; then
41 if [ "$X" = ":" ];then
44 cat working/diffdir/newdiskorder |grep $l|while read LINE;do
45 echo $LINE|cut -d" " -f1|grep $l>>/dev/null
47 echo $LINE|cut -d" " -f 2-3>previous
54 previous=`cat previous`
55 previous='"'$previous'"'
58 if [ "$previous" = "" ];then
61 echo $line $previous $s >>dialogtest
69 sed -i s/zzz/$y/g dialogtest
70 echo "2>ans">>dialogtest
78 sed -i 's@//@ /@g' ans
83 for i in `seq 1 $b`;do
84 answer=`cat ans |awk "{ print \$ $i }"`
85 echo $answer"">>disklist