diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2002-08-10 04:35:27 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2002-08-10 04:35:27 +0000 |
| commit | 306a0595289a1660e82e229cd0db19e1ff4ef59d (patch) | |
| tree | 702199d3b5e34c9ba151483313d8c26565451c75 /emulators/vmware3/scripts | |
| parent | 280725774faa4e3d91ff599cca3a1466c77d300e (diff) | |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_6_1'.release/4.6.1
Diffstat (limited to 'emulators/vmware3/scripts')
| -rw-r--r-- | emulators/vmware3/scripts/configure | 160 | ||||
| -rw-r--r-- | emulators/vmware3/scripts/pre-install | 29 |
2 files changed, 0 insertions, 189 deletions
diff --git a/emulators/vmware3/scripts/configure b/emulators/vmware3/scripts/configure deleted file mode 100644 index 4b00cb17e72e..000000000000 --- a/emulators/vmware3/scripts/configure +++ /dev/null @@ -1,160 +0,0 @@ -#!/bin/sh - -[ "_$VMNET_HOST_IP" = _ ] && VMNET_HOST_IP="192.168.254.1" -[ "_$VMNET_NETMASK" = _ ] && VMNET_NETMASK="255.255.255.0" - -host_ip=$VMNET_HOST_IP -netmask=$VMNET_NETMASK -title="VMware network options" - -get_network_settings() { - bridged="NO" - /usr/bin/dialog --title "$title" --clear --yesno \ -"\n"\ -"Do you want to use netgraph bridging?\n"\ - 10 50 - if [ $? -eq 0 ]; then - bridged="YES" - result=`/usr/bin/dialog --title "$title" --clear --inputbox \ -"\n"\ -"To which interface would you\n"\ -"like to tie the bridge?:"\ - 10 50 "" \ - 2>&1 > /dev/tty` - case $? in - 0) - if [ -z "$result" ]; then - return 1 - fi - bdg_interface=$result - ;; - 1) - return 1 - ;; - esac - host_ip=192.168.0.1 - netmask=255.255.255.0 - else - - result=`/usr/bin/dialog --title "$title" --clear --inputbox \ -"\n"\ -"What will be the IP address of your host\n"\ -"on your private network?:"\ - 10 50 $host_ip \ - 2>&1 >/dev/tty ` - - case $? in - 0) - if [ -z "$result" ]; then - return 1 - fi - host_ip=$result - ;; - 1) - return 1 - ;; - esac - - result=`/usr/bin/dialog --title "$title" --clear --inputbox \ -"\n"\ -"What will be the netmask of your private\n"\ -"network?:"\ - 10 50 $netmask \ - 2>&1 >/dev/tty ` - - case $? in - 0) - if [ -z "$result" ]; then - return 1 - fi - netmask=$result - ;; - 1) - return 1 - ;; - esac - return 0; - fi -} - -do_network() { - while true; do - get_network_settings - - if [ "X$bridged" != "XYES" ]; then - /usr/bin/dialog --title "Confirmation" --clear --yesno \ -"\n"\ -"Are the following options correct?\n\n"\ -"Configuration: host only\n"\ -"IP address: $host_ip\n"\ -"Netmask: $netmask\n"\ - 10 50 - [ $? -eq 0 ] && return 0 - else - /usr/bin/dialog --title "Confirmation" --clear --yesno \ -"\n"\ -"Are the following options correct?\n\n"\ -"Configuration: bridged\n"\ -"Interface: $bdg_interface\n"\ - 10 50 - [ $? -eq 0 ] && return 0 - fi - - /usr/bin/dialog --title "Confirmation" --clear --yesno \ -"\n"\ -"Do you want to edit network options again?\n"\ - 10 50 - [ $? -eq 0 ] && continue - - /usr/bin/dialog --title "Confirmation" --clear --yesno \ -"\n"\ -"Do you want to continue without networking?\n"\ - 10 50 - [ $? -eq 0 ] && return 1 - - host_ip=$VMNET_HOST_IP - netmask=$VMNET_NETMASK - - return 0; - done -} - -networking=0 -if [ _$BATCH = _ ]; then - do_network - - if [ $? -eq 0 ]; then - networking=1 - if [ X$bridged = XYES ]; then - /usr/bin/dialog --title "$title" --infobox \ -"\n"\ -"The following options will be used.\n\n"\ -"Configuration: bridged\n"\ -"Interface: $bdg_interface\n"\ - 10 50 - else - /usr/bin/dialog --title "$title" --infobox \ -"\n"\ -"The following options will be used.\n\n"\ -"Configuration: host only\n"\ -"IP address: $host_ip\n"\ -"Netmask: $netmask\n"\ - 10 50 - fi - fi -else #BATCH - [ -f ${WRKDIR}/Makefile.inc.net ] && exit 0 -fi #BATCH - -( -exec > ${WRKDIR}/Makefile.inc.net - -echo '#' `date` -echo VMNET_BRIDGED=$bridged -echo VMNET_BRIDGED_INTERFACE=$bdg_interface -echo VMNET_HOST_IP=$host_ip -echo VMNET_NETMASK=$netmask -echo VMNET_NETWORKING=$networking -) - -exit 0 diff --git a/emulators/vmware3/scripts/pre-install b/emulators/vmware3/scripts/pre-install deleted file mode 100644 index 3b6a1f8eb30c..000000000000 --- a/emulators/vmware3/scripts/pre-install +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -echo Setup Linux compatible /dev directory -linux_dev=${LINUXBASE}/dev -if [ ! -d $linux_dev ]; then - echo Creating $linux_dev - mkdir $linux_dev - chown root:wheel $linux_dev - chmod 755 $linux_dev -fi -echo Creating $linux_dev/tty\? -for n in 0 1 2 3 4 5 6 7 8 9; do - ln -s /dev/ttyv$n $linux_dev/tty`expr 1 + $n`; -done -ln -s /dev/ttyva ${linux_dev}/tty11 -ln -s /dev/ttyvb ${linux_dev}/tty12 -ln -s ${linux_dev}/tty1 ${linux_dev}/tty0 -mknod ${linux_dev}/null c 2 2 -chmod 666 ${linux_dev}/null -echo Creating vmnet1 node -mknod /compat/linux/dev/vmnet1 c 149 65537 -echo Creating $linux_dev/hd\? -mknod ${linux_dev}/hda b 0 0x00010002 -mknod ${linux_dev}/hdb b 0 0x0001000a -# Do not enable below, because vmware-wizard is locked when -# doing something like access("/dev/hdc"...) -#mknod ${linux_dev}/hdc b 0 0x00010012 -#mknod ${linux_dev}/hdd b 0 0x0001001a -echo Done |
