home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / mc454src.zip / mc-4.5.4.src / mc-4.5.4 / create_vcs < prev    next >
Text File  |  1999-01-04  |  339b  |  21 lines

  1. #!/bin/sh
  2. #
  3. # Script by Jakub Jelinek
  4. #
  5. if test -e /dev/vcs0
  6. then
  7.     exit
  8. fi
  9.  
  10. I=0
  11. while [ $I -lt 64 ] 
  12. do
  13.         mknod /dev/vcs$I c 7 $I
  14.         chmod 622 /dev/vcs$I
  15.         chown root.tty /dev/vcs$I
  16.         mknod /dev/vcsa$I c 7 `expr $I + 128`
  17.         chmod 622 /dev/vcsa$I
  18.         chown root.tty /dev/vcsa$I
  19.         I=`expr $I + 1`
  20. done
  21.