I'm currently using /etc/rc.d/rc.local to setup
the "spooling" filesystems, (to be used with loop
devices), the named server, and the resolver. 

I am a little confused as to the current setup
of /dev -- I couldn't find either /dev/hdb, (the 
real name), or /dev/cdrom or /dev/scd0, (the 
ide-scsi emulated device). It appears that to get
the device "created" I need to try to access it.
running "/usr/bin/cdrecord --scanbus" seems to cause it 
to exist. How does one figure out the new setup? Is there
a FAQ, How-to or whathaveyou documenting the changes?
/etc/inittab refers to the /dev/tty[1-12] devices,
but those are sym-links to /dev/vc/[1-12]?

I'm also looking for in.telnetd (or whatever
RPM calls it). I found telnet-server-krb5-1.2.2-11mdk.i586.rpm,
I think this may be the right one. 


I copied the /etc/rc.d files I'm using to setup 
the hostname and named+resolver to point to my name servers,
and setup this machine as a slave for the zone.

thanks again :)

Fuzzy

 





--> /etc/rc.d/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

[ -f /etc/sysconfig/system ] && source /etc/sysconfig/system
[ -z "$SECURITY" ] && SECURITY=0

if [ -f /var/lock/TMP_1ST ];then
 if [ -f /etc/init.d/mandrake_firstime ];then
        /bin/sh /etc/init.d/mandrake_firstime
 fi
fi

if [ -f /etc/mandrake-release ]; then
    R=$(cat /etc/mandrake-release)

    arch=$(uname -m)
    a="a"
    case "_$arch" in
            _a*) a="an";;
            _i*) a="an";;
    esac
    
    NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
    if [ "$NUMPROC" -gt "1" ]; then
        SMP="$NUMPROC-processor "
        [ "$NUMPROC" = "2" ] && \
        SMP="Dual-processor "
        if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
            a="an"
        else
            a="a"
        fi
    fi

    # This will overwrite /etc/issue at every boot.  So, make any
changes you
    # want to make to /etc/issue here or you will lose them when you
reboot.

    if [ -x /usr/bin/linux_logo ];then
        /usr/bin/linux_logo -c -n -f > /etc/issue
        echo "" >> /etc/issue
    else
        > /etc/issue
    fi
    echo "$R" >> /etc/issue
    echo "Kernel $(uname -r) on $a $SMP$(uname -m) / \l" >> /etc/issue
    
    if [ "$SECURITY" -le 3 ];then
        echo "Welcome to %h" > /etc/issue.net
        echo "$R" >> /etc/issue.net
        echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue.net
    else        
        echo "Welcome to Mandrake Linux" > /etc/issue.net
        echo "-------------------------" >> /etc/issue.net
    fi
fi
touch /var/lock/subsys/local
/usr/bin/cdrecord -scanbus > /dev/null 2>> /dev/null
/bin/mount /dev/hda5 2> /dev/null
/sbin/e2fsck -y /backup-spool/spool-1  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-2  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-3  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-4  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-5  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-6  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-7  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-8  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-9  2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-10 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-11 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-12 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-13 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-14 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-15 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-16 2>/dev/null \
        | /usr/bin/logger -t CD-R
/sbin/e2fsck -y /backup-spool/spool-17 2>/dev/null \
        | /usr/bin/logger -t CD-R
/usr/bin/killall -15 syslogd
/usr/bin/killall -9 syslogd > /dev/null 2>1
/usr/bin/killall -15 named > /dev/null 2>1
/usr/bin/killall -9 named > /dev/null 2>1
/bin/hostname pooh.ASARian.org
/sbin/syslogd
/etc/rc.d/rc.resolv.conf
/sbin/service named start

--> /etc/rc.d/rc.rc.resolv.conf

#!/bin/sh
HOSTIP=`/sbin/ifconfig eth0|head -2|tail -1|awk -F: '{print $2}'|tail
-1|awk '{print $1}'`
echo "Rebuilding /etc/resolv.conf" \
        | /usr/bin/logger -t eth0 
echo "search asarian.org nc.rr.com rr.com" > /etc/resolv.conf
echo "nameserver" ${HOSTIP} >> /etc/resolv.conf
echo "nameserver 208.241.154.83" >> /etc/resolv.conf
echo "nameserver 24.93.67.64" >> /etc/resolv.conf
echo "nameserver 24.93.67.65" >> /etc/resolv.conf
echo "DHCPCD: Assigned IP Addr: "${HOSTIP} | /usr/bin/logger -t eth0
echo "Hostname:" `/bin/hostname` \
        | /usr/bin/logger -t eth0 
echo "/etc/resolv.conf updated" \
        | /usr/bin/logger -t eth0 

--> /etc/rc.d/rc.build_etc_hosts

#!/bin/bash
HOSTIP=`/sbin/ifconfig eth0|head -2|tail -1|awk -F: '{print $2}'|tail
-1|awk '{print $1}'`
QWILLPEN="24.25.18.221"
echo "# Do not remove the following line, or various programs" >
/etc/hosts
echo "# that require network functionality will fail." >> /etc/hosts
echo "127.0.0.1 localhost.localdomain   localhost" >> /etc/hosts
echo "208.241.154.83    piglet.asarian.org      ns.asarian.org  asarian.org"\
        >> /etc/hosts
/bin/echo  ${HOSTIP}"   pooh.ASARian.org        pooh" >> /etc/hosts
/bin/echo  ${QWILLPEN}" qwillpen.ASARian.org    qwillpen" >> /etc/hosts

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to