Image

Imagenikolast wrote in Imagelinux 😡annoyed

I can't get my internet to start on startup

I'm using Slackware 10.1 and I've been trying to get my DSL connection to start when I boot up my computer and also to have my clock syncronized with a time server. So I added the lines needed to my rc.Local file but still it isn't working.


#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:

# To disable dbus, chmod rc.messagebus to 644
if [ -x /etc/rc.d/rc.messagebus ]; then
echo "Starting D-BUS Messaging Subsystem" . /etc/rc.d/rc.messagebus start
fi

# To disable hal, chmod rc.hal to 644
if [ -x /etc/rc.d/rc.hal ]; then
echo "Starting HAL"
. /etc/rc.d/rc.hal start
fi

# To disable saslauthd, chmod rc.dbus to 644
if [ -x /etc/rc.d/rc.saslauthd ]; then
. /etc/rc.d/rc.saslauthd start
fi

/usr/sbin/adsl-start


rdate -s clock-1.cs.cmu.edu && hwclock --systohc


any ideas on how to get this to work?

***Edited to add: I fixed the problem by putting adsl and rdate first in the script in that order. But I have another question: does anyone know of any rdate time servers that work? The one have currently in the script keeps timing out.***