home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / images / ramdisk2.img / usr / lib / perl / modem < prev    next >
Text File  |  1995-08-07  |  762b  |  38 lines

  1. # config modem -*-perl-*-
  2.  
  3. sub configure_modem {
  4.     local ( $dev );
  5.  
  6.     if (!&rhs_menu("Modem Configuration",
  7. <<EOM
  8. >
  9. Select the device (serial port) to which your modem is connected.
  10. >
  11. If you have no modem, select <none>.
  12. >
  13. (This configuration step simply makes a link from /dev/modem
  14. to your actual modem device.)
  15. EOM
  16.            , 60, 5,
  17.            "<none>", "No Modem",
  18.            "/dev/cua0", "COM1: under MS-DOS",
  19.            "/dev/cua1", "COM2: under MS-DOS",
  20.            "/dev/cua2", "COM3: under MS-DOS",
  21.            "/dev/cua3", "COM4: under MS-DOS")) {
  22.     return 0;
  23.     }
  24.  
  25.     return 1 if $dialog_result eq "<none>";
  26.  
  27.     $dev = $dialog_result;
  28.     $dev =~ s/.*\///;
  29.     unlink("$fsmount/dev/modem");
  30.     symlink($dev, "$fsmount/dev/modem");
  31.  
  32.     return 1;
  33. }
  34.  
  35. ########################
  36. 1;
  37.