SelectInstallConfig() { NumEntrys=0 ENTRY="" for i in *.cfg; do if [ ${NumEntrys} == "0" ]; then ENTRY="$i config on" else ENTRY=$ENTRY" $i config off" fi (( NumEntrys++ )) done ENTRY="$ENTRY Select Own off" (( NumEntrys++ )) (( NumEntrys++ )) if [ ! $NumEntrys = "1" ]; then $DIALOGPRG --stdout \ --backtitle "ViitorLinux Installation Setup" \ --title "Select Installtion Configuration" \ --radiolist "To use" 0 0 $NumEntrys \ $ENTRY else $DISLOGPRG --title "ViitorLinux Installation Setup" --clear \ --msgbox "No usable installation config found" return 1 fi }