#!/bin/sh
#
# ppp-autoconf: creates the PPP config files

# If we were not sourced by the startup scripts,
# source the Coyote config
[ -z "$PPPUSERNAME" ] && . /etc/coyote/coyote.conf

# Create the chap and pap secrets files
echo "$PPPUSERNAME	*	$PPPPASSWORD	*" > /etc/ppp/chap-secrets
echo "$PPPUSERNAME	*	$PPPPASSWORD	*" > /etc/ppp/pap-secrets
# And secure them
chmod 600 /etc/ppp/chap-secrets
chmod 600 /etc/ppp/pap-secrets


# Create the PPP options file

