I am wondering if someone would be so kind to look at what I have for an 
interface script and tell me how far off base I am. What I am trying to do is 
to install an sl0 interface to tie the linux kernel to an application .  
Slattach is the daemon that is used..

I used  chkconfig --add rc.slip to tell my system that this script exists. 
That works fine, and it gets installed when I reboot . I know however that it 
is not sophisticated and is missing various things such as a 'start' and 
'stop' function. I have no idea how to install that part, even though I am 
still looking over other scripts found in /etc/rc.d/init.d...

Here is what I have so far:

----------------------
#!/bin/bash
#
# chkconfig: 2345 85 15
# description: rc.slip adds a link between jnos and the kernel
# interface: slattach

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration and check that networking is up.
if [ -f /etc/sysconfig/network ] ; then
        . /etc/sysconfig/network
        [ ${NETWORKING} = "no" ] && exit 0
fi

#[ -x /sbin/slattach ] || exit 0

#prog=slattach

#RETVAL=0

#start () {
#    echo -n $"Starting $prog: "

/sbin/slattach -s 38400 -p slip /dev/ptypf &
sleep 2
/sbin/ifconfig sl0 44.135.34.209 netmask 255.255.255.255 broadcast 
44.135.34.255
sleep 1
/sbin/route add -net 44.135.34.210 netmask 255.255.255.255 sl0
sleep 1
----------------------------------


-- 
Ted Gervais
Coldbrook, Nova Scotia Canada



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to