#!/bin/sh
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi

dialog --title "SOURCE MEDIA SELECTION" --menu \
"Please select the media from which to install Slackware Linux:" \
11 70 4 \
"1" "Install from a Slackware CD or DVD" \
"2" "Install from a hard drive partition" \
"3" "Install from NFS (Network File System)" \
"4" "Install from a pre-mounted directory" \
2> $TMP/media
if [ ! $? = 0 ]; then
 rm $TMP/media
 exit
fi

SOURCE_MEDIA="`cat $TMP/media`"
rm -f $TMP/media
if [ "$SOURCE_MEDIA" = "1" ]; then
 INSCD
elif [ "$SOURCE_MEDIA" = "2" ]; then
 INShd
elif [ "$SOURCE_MEDIA" = "3" ]; then
 INSNFS
elif [ "$SOURCE_MEDIA" = "4" ]; then
 INSdir 
elif [ "$SOURCE_MEDIA" = "5" ]; then
 INSfd
fi

# Sorry, this goes the way of the dinosaur...
#"5" "Install from floppy disks (A and N series only)" 

