#!/bin/sh
# Make sure the lock directory is setup correctly.  This  script  affects  the
# UUCP  and  SLIP  packages;  if you are using UUCP or SLIP, you should verify
# that this setup is correct.  Ultrix currently uses old-style uucp lock files
# in  /usr/spool/uucp,  but  this  may  change in the future.  Note that it is
# common to use tip during debugging of a SLIP link; this setup should  ensure
# that tip works correctly.

#cd `dirname $0`
if [ -f ./.profile ];then . ./.profile;fi

test "$LCKDIR" || {
    LCKDIR=/usr/spool/uucp
    test -d $LCKDIR || {
		mkdir -p $LCKDIR
		echo Made $LCKDIR for device locks.
	}
}
chown	uucp $LCKDIR
chgrp	uucp $LCKDIR
chmod	777  $LCKDIR  # Not needed if slipd runs as root.

