[EMAIL PROTECTED] (Kees de Bruin) writes:

> Hi,
> 
> I've installed the latest MandrakeFreq on my new box and had no problems
> what so ever during the install. However, when I setup my ADSL internet
> connection DrakNet asks me if I want to start the connection at boot time,
> and although I responded with "yes" nothing is started when I boot the PC.
> 
> So, what things should I manually add to have it start the ADSL connection
> at boot time?
> 

look at the file /etc/rc.d/init.d/adsl

it should contain:

----------------------------------
#!/bin/bash
#
# adsl       Bring up/down adsl connection
#
# chkconfig: 2345 11 89
# description: Activates/Deactivates the adsl interfaces
        case "$1" in
                start)
                echo -n "Starting adsl connection: "
                /etc/sysconfig/network-scripts/net_cnx_up
                touch /var/lock/subsys/adsl
                echo -n adsl
                echo
                ;;
        stop)
                echo -n "Stopping adsl connection: "
                /etc/sysconfig/network-scripts/net_cnx_down
                echo -n adsl
                echo
                rm -f /var/lock/subsys/adsl
                ;;
        restart)
                $0 stop
                echo -n "Waiting 10 sec before restarting adsl."
                sleep 10
                $0 start
                ;;
        status)
                ;;
        *)
        echo "Usage: adsl {start|stop|status|restart}"
        exit 1
esac
exit 0
----------------------------------


The file /etc/sysconfig/network-scripts/net_cnx_up should contain the
connection commands. If you are using pppoe:

----------------------------------
#!/bin/bash
/sbin/route del default
LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /usr/sbin/adsl-start $netc->{NET_DEVICE} 
$adsl->{login}
----------------------------------

If you are using pptp:

----------------------------------
#!/bin/bash
/sbin/route del default
/usr/bin/pptp 10.0.0.138 name $adsl->{login}
----------------------------------

The file /etc/sysconfig/network-scripts/net_cnx_diwn should contain the
deconnection commands. If you are using pppoe:

----------------------------------
#!/bin/bash
/usr/sbin/adsl-stop
/usr/bin/killall pppoe pppd
----------------------------------

If you are using pptp:
----------------------------------
#!/bin/bash
/usr/bin/killall pptp pppd
----------------------------------

see you

-- 
dam's

Reply via email to