seti $printhelp = $printhelp while 1 = 1 echo " " echo "Read sectors menu" echo "q) Quit" echo "p) Previous menu" echo "h) Toggle script help echo "1) Read sectors PIO 28" echo "2) Read sectors PIO 48" echo "3) Read sectors DMA 28" echo "4) Read sectors DMA 48" echo "5) Readlong (old 28 bit)" echo "6) Readlong (48 bit SCT)" if $printhelp = 1 exit 0 endif echo "Enter your choice: userinput $choicestring if $choicestring = q break elseif $choicestring = p previousscript elseif $choicestring = h if $help = 0 seti $help = 1 echo "Help is now turned on" else seti $help = 0 echo "Help is now turned off" endif elseif $choicestring = 1 loadscript ata28_read_sectors_pio break elseif $choicestring = 2 loadscript ata48_read_sectors_pio break elseif $choicestring = 3 loadscript ata28_read_sectors_dma break elseif $choicestring = 4 loadscript ata48_read_sectors_dma break elseif $choicestring = 5 loadscript ata28_readlong break elseif $choicestring = 6 loadscript ata_sct_readlong break else echo "bad choice= " $choicestring endif done end