#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin

# Paths to programs
SETSID=/usr/bin/setsid

# ifup-post for PPP is handled through /etc/ppp/ip-up

cd /etc/sysconfig/network-scripts
. network-functions

CONFIG=$1
[ -f "$CONFIG" ] || CONFIG=ifcfg-$1
source_config

if [ "$2" = "boot" -a "${ONBOOT}" = "no" ]; then
  exit
fi

# pppd will no longer delete an existing default route
# so we have to help it out a little here.
route del default >/dev/null 2>&1

# execute adsl bring up script
/usr/sbin/adsl-connect > /dev/null &

