head     1.2;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.2
date     93.01.28.15.26.45;  author ks;  state Exp;
branches ;
next     1.1;

1.1
date     93.01.19.14.50.38;  author ks;  state Exp;
branches ;
next     ;


desc
@@


1.2
log
@New pathname stuff.. 
@
text
@#!/bin/sh
#
# Make devices and start daemons for dialup ppp

DEVICE=/dev/dp0
. /etc/dp.conf

rm -f $DEVICE
mknod $DEVICE c $4 0

rm -f $DPLOG_DIR/ID.dp
echo $1 > $DPLOG_DIR/ID.dp

#
# ifconfig selected interfaces
#
if [ -f $DPCONF_DIR/dp-if ]; then
	cat $DPCONF_DIR/dp-if | (
		while read IFNAME LOCAL REMOTE
		do
			if [ "`echo $IFNAME | cut -c1`"X != "#"X ]; then
				ifconfig $IFNAME $LOCAL $REMOTE up -trailers netmask +
			fi
		done
	)
fi

#
# Clear the log file - comment this out if you want
#
rm $DPLOG_DIR/dp.log

#
# start the daemon
#
if [ -f $DPBIN_DIR/dpd ]; then
	$DPBIN_DIR/dpd
fi

@


1.1
log
@Initial revision
@
text
@d6 1
a6 3
DPDIR=/etc/dp
BINDIR=/usr/etc
LOGDIR=/var/adm/dp
d11 2
a12 2
rm -f $LOGDIR/ID.dp
echo $1 > $LOGDIR/ID.dp
d17 2
a18 2
if [ -f $DPDIR/config/dp-if ]; then
	cat $DPDIR/config/dp-if | (
d31 1
a31 1
rm $LOGDIR/dp.log
d36 2
a37 2
if [ -f $BINDIR/dpd ]; then
	$BINDIR/dpd
@
