[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Samba client



Looking at the boot script /etc/rc  it does this:

#
# Start up the MiNT Network - only if really enabled.
#
if [ -f /etc/rc.d/rc.net -a -e /dev/socket ]; then
        sh /etc/rc.d/rc.net
fi


#
# execute local things
#
if [ -f /etc/rc.d/rc.local ]; then
        sh /etc/rc.d/rc.local
fi

-----------

rc.local starts dhclient

the rc.net script looks like this below. I think I added some echo
messages to make it a bit clearer when booting.

I suspect either a defect in these scripts is missing out the route:
/sbin/route add 192.168.0.0 rtk0
or it is a dhclient problem.


------------------
#
# /etc/rc.net -- run from /etc/rc.
#

#
# Setup network interfaces and routes
#
echo -n "configuring interfaces:"
grep -v '^#' /etc/sysconfig/config.if ¦ \
while read intrfc ipaddr network netmask broadaddr; do
        if [ -f /etc/sysconfig/"$intrfc".hw ]; then
                ifconfig $intrfc -f /etc/sysconfig/"$intrfc".hw
        fi
        # mtu of 1472 works higher values might not
        ifconfig $intrfc addr $ipaddr netmask $netmask broadaddr $broadaddr mtu 1458 up > /dev/null 2>&1
        if [ "X$intrfc" != Xlo0 ]; then
                route add $network $intrfc
        fi
        echo -n " $intrfc"
done
echo " ."

echo -n "adding defaultroute:"
grep -v '^#' /etc/sysconfig/defaultroute ¦ \
while read intrfc ipaddr; do
        route add default $intrfc gw $ipaddr > /dev/null 2>&1
        echo -n " $ipaddr"
        break
done
echo " ."

#
# Start network daemons
#
grep -v '^#' /etc/sysconfig/net.services ¦ \
while read service; do
        path="/etc/rc.d/init.d/$service"
        if [ -f $path ]; then
                $path start
        fi
done


if [ -f /etc/rc.d/rc.nfs ]; then
        sh /etc/rc.d/rc.nfs
fi