Update of /cvsroot/linux-atm/linux-atm/src/config/init-redhat
In directory usw-pr-cvs1:/tmp/cvs-serv28180/src/config/init-redhat
Added Files:
Tag: V2_4_0
Makefile.am README atm atm-sysconfig ifcfg-lec0
Log Message:
Add sample hosts.atm file and also add John Strange's startup scripts for
RedHat...
--- NEW FILE: Makefile.am ---
EXTRA_DIST = atm atm-sysconfig ifcfg-lec0 README
--- NEW FILE: README ---
This is a quick readme on how to setup ATM on linux.
This script will work in conjuction with the /etc/rc.d/init.d/network script to startup LANE services and interfaces. I have tested it with LANE but your mileage may vary with other configurations.
- Copy atm-sysconfig to /etc/sysconfig/atm
- Copy atm to /etc/rc.d/init.d/
- Link atm to your favorite runlevel to start on boot, but remember atmsigd and other services need to start before networking.
- Copy ifcfg-lec0 to /etc/sysconfig/network-scripts (change it to suit your needs such as the correct ELAN and selector byte)
That's about the basics, if you need help email me at jo...@st... and I'll be glad to help.
--- NEW FILE: atm ---
#!/bin/sh
#
# /etc/rc.d/init.d/atm - Bring up/down ATM
#
# Source function library.
. /etc/rc.d/init.d/functions
if [ ! -f /etc/sysconfig/atm ]; then
exit 0
fi
. /etc/sysconfig/atm
[ "$ATM" != yes ] && exit 0
cd /etc/sysconfig/network-scripts
case "$1" in
start)
echo -n "Starting ATM demons: "
daemon atmsigd -b -l syslog -D /var/tmp -t 20
daemon ilmid -b -l syslog `[ -z "$ILMIQOS" ] || echo -q $ILMIQOS`
sleep 3 # let's rest a second give signalling and ilmid a chance to get started.
if [ "$LANE" = yes ]; then
for i in /etc/sysconfig/network-scripts/ifcfg-lec[0-9]; do
source $i
zeppelin -n $ELAN -i $INTERFACEID -l $SELBYTE -F syslog &
done
fi
[ "$IPATM" = yes ] && daemon atmarpd -b -l syslog -m
# launch LANE demon(s) ...
[ "$AREQUIPA" = yes ] && daemon arequipad -b -l syslog
echo
touch /var/lock/subsys/atm
;;
stop)
if [ "$LANE" = yes ]; then
for n in ifcfg-lec[0-9]; do
./ifdown $n
killproc zeppelin
done
fi
if [ "$IPATM" = yes ]; then
for n in ifcfg-atm[0-9]; do
./ifdown $n
done
fi
echo -n "Stopping ATM demons: "
if [ "$IPATM" = yes ]; then
[ "$AREQUIPA" = yes ] && killproc arequipad
killproc atmarpd
fi
killproc atmsigd # kill ILMID later, so we don't get complaints
killproc ilmid
echo
rm -f /var/lock/subsys/atm
;;
*) echo "Usage: atm {start|stop}"
exit 1
esac
--- NEW FILE: atm-sysconfig ---
#
# /etc/sysconfig/atm - general ATM setup
#
ATM=yes # enable ATM support at all
IPATM=no # Classical IP over ATM (using ATMARP)
AREQUIPA=no # Application REQUested IP over ATM
LANE=yes # LAN Emulation (client; doesn't work yet)
# ILMIQOS="ubr:pcr=100kbps" # optional: QOS to use on the ILMI VC
--- NEW FILE: ifcfg-lec0 ---
DEVICE=lec0
BOOTPROTO=static
BROADCAST=169.144.155.255
IPADDR=169.144.155.52
NETMASK=255.255.255.0
NETWORK=169.144.155.0
ELAN=canvas
SELBYTE=00
INTERFACEID=0
ONBOOT=yes
|