#!/bin/sh dialog --title "MODEM CONFIGURATION" --yesno \ "\n\ This part of the configuration process will create a link in /dev\n\ from your callout device (cua0, cua1, cua2, cua3) to /dev/modem.\n\ You can change this link later if you put your modem on a different\n\ port.\n\n\ Would you like to set up your modem?\n" 12 73 if [ $? = 0 ]; then dialog --title "SELECT CALLOUT DEVICE" \ --menu "Please select the callout device which you would like to use \ for your modem:" 12 60 4 \ "cua0" "com1: under DOS" \ "cua1" "com2: under DOS" \ "cua2" "com3: under DOS" \ "cua3" "com4: under DOS" 2> /tmp/callout if [ $? = 1 ]; then rm -f /tmp/callout else MODEM_DEVICE="`cat /tmp/callout`" rm -f /tmp/callout (cd /dev; ln -sf $MODEM_DEVICE modem) fi fi dialog --title "MOUSE CONFIGURATION" \ --yesno "\n\ This part of the configuration process will create a link in /dev\n\ from your mouse device to /dev/mouse. You can change this link\n\ later if the setting chosen does not work, or if you switch to a\n\ different type of mouse.\n\n\ Would you like to set up your mouse?" 12 70 if [ $? = 0 ]; then dialog --title "SELECT MOUSE TYPE" --menu "These mouse types are supported:" 13 60 6 \ "1" "Microsoft compatible serial mouse" \ "2" "C&T 82C710 or PS/2 style mouse (Auxiliary port)" \ "3" "Logitech Bus Mouse" \ "4" "ATI XL Bus Mouse" \ "5" "Microsoft Bus Mouse" \ "6" "Mouse Systems serial mouse" 2> /tmp/mtype if [ $? = 1 ]; then rm -f /tmp/mtype fi if [ -f /tmp/mtype ]; then MOUSE_TYPE="`cat /tmp/mtype`" else unset MOUSE_TYPE fi rm -f /tmp/mtype if [ "$MOUSE_TYPE" = "1" -o "$MOUSE_TYPE" = "6" ]; then dialog --title "SELECT SERIAL PORT" --menu "Your mouse requires a serial port. Which one would you \ like to use?" 12 60 4 \ "ttyS0" "com1: under DOS" \ "ttyS1" "com2: under DOS" \ "ttyS2" "com3: under DOS" \ "ttyS3" "com4: under DOS" 2> /tmp/mport if [ $? = 1 ]; then rm -f /tmp/mport fi if [ -f /tmp/mport ]; then MOUSE_DEVICE="`cat /tmp/mport`" else unset MOUSE_DEVICE fi rm -f /tmp/mport if [ "$MOUSE_TYPE" = "1" ]; then MTYPE="ms" else MTYPE="msc" fi (cd /dev; ln -sf $MOUSE_DEVICE mouse) elif [ "$MOUSE_TYPE" = "2" ]; then (cd /dev; ln -sf psaux mouse) MTYPE="ps2" elif [ "$MOUSE_TYPE" = "3" ]; then (cd /dev; ln -sf logibm mouse) MTYPE="logi" elif [ "$MOUSE_TYPE" = "4" ]; then (cd /dev; ln -sf atibm mouse) MTYPE="bm" elif [ "$MOUSE_TYPE" = "5" ]; then (cd /dev; ln -sf inportbm mouse) MTYPE="bm" fi fi echo