#!/bin/sh dialog --title "SELECT INSTALLATION TYPE" --menu \ "You will be installing software packages from the Slackware CD-ROM. \ The CD-ROM must be mounted beneath /cdrom in order for this to be \ successful. You may install packages to your hard drive or install \ links to allow you to run software from the live filesystem on the \ CD-ROM." 13 70 2 \ "harddisk" "Install packages to your hard drive" \ "cd-rom" "Run packages from the Slackware CD-ROM" 2> /tmp/SeTinstype if [ "`cat /tmp/SeTinstype`" = "harddisk" ]; then SOURCEDIR="/cdrom/slakware" elif [ "`cat /tmp/SeTinstype`" = "cd-rom" ]; then SOURCEDIR="/cdrom/link2cd" fi rm -f /var/adm/mount 2> /dev/null rmdir /var/adm/mount 2> /dev/null ln -sf $SOURCEDIR /var/adm/mount if [ -d $SOURCEDIR ]; then echo "/var/adm/mount" > /tmp/SeTDS echo "-source_mounted" > /tmp/SeTmount echo "/dev/null" > /tmp/SeTsource exit else dialog --title "INVALID DIRECTORY ENTERED" --msgbox \ "Sorry - the CD-ROM could not be found. Please check to make sure that \ it is mounted beneath /cdrom and try again. (Directory given: $SOURCEDIR)" \ 8 65 rm -f /tmp/SeTDS /tmp/SeTmount /tmp/sourcedir fi done;