summaryrefslogtreecommitdiffstats
path: root/setup2hd/SeTumedia.tpl
blob: f14e37c492ce87bd9bd68714d303ed3085f438de (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi

dialog --backtitle "Select Slackware installation source." \
--title "SOURCE MEDIA SELECTION" --menu \
"Please select the media from which to install Slackware Linux:" \
14 70 7 \
"1" "Install Slackware from NFS (Network File System)" \
"2" "Install Slackware from FTP/HTTP server" \
"3" "Install Slackware from Samba share" \
"4" "Install @UDISTRO@ (@LIVEDE@) Live OS to disk" \
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
 INSNFS
elif [ "$SOURCE_MEDIA" = "2" ]; then
 INSURL 
elif [ "$SOURCE_MEDIA" = "3" ]; then
 INSSMB 
elif [ "$SOURCE_MEDIA" = "4" ]; then
 touch $TMP/SeTlive
 touch $TMP/SeTsource
fi