home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / pc / util / minilin / minilin.exe / USR / LIB / PPP / FIX-CUA < prev    next >
Text File  |  1994-05-25  |  222b  |  17 lines

  1. #!/bin/sh
  2.  
  3. LOCKDIR=/var/spool/lock
  4.  
  5. case "$1" in
  6.     "")        echo "Usage: fix-cua device"; exit 1 ;;
  7. esac
  8.  
  9. if [ -f $LOCKDIR/LCK..$1 ]
  10. then
  11.     echo "/dev/$1 is locked" 2>&1
  12.     exit 1
  13. fi
  14.  
  15. chown root /dev/$1
  16. chmod 666 /dev/$1
  17.