home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / etc / makedev.d / usbprinter < prev    next >
Encoding:
Text File  |  2002-08-13  |  208 b   |  9 lines

  1. $numdevs{$name} = 16;
  2. $stddevs{$name} = "^(usb/lp\d*)\$";
  3.  
  4. $generate{$name} = sub {
  5.     mkdir "usb", 0755;
  6.     &$MkNod ("printer", sprintf("usb/lp%d", $i), "c", 180, $i);
  7.     if (!$i) { &$SymLink("lp0","usb/lp"); }
  8. }
  9.