d1fa99da5e
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/ViitorSetup@5933 504e572c-2e33-0410-9681-be2bf7408885
27 lines
642 B
Plaintext
27 lines
642 B
Plaintext
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
|
|
}
|