Re: Red Hat 5.0 Release date
On 20 Nov 1997, Ben Gertzfield wrote:
> I'll get to work on a /usr/sbin/netconfig, and re-make
> /etc/init.d/network to be a little more in line with the other
> /etc/init.d scripts.
Wrote mine a long time ago, this is the way mine looks like:
---------- s n i p p ----------
#!/bin/sh
IPADDR=42.42.40.90
NETMASK=255.255.0.0
NETWORK=42.42.0.0
BROADCAST=42.42.255.255
GATEWAY=42.42.40.42
case "$1" in
start)
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
#
hostname `cat /etc/hostname`
domainname `cat /etc/defaultdomain`
#
echo
echo "Configuring Network: ${IPADDR} (`hostname`.`domainname`)... "
ifconfig eth1 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
route add default gw ${GATEWAY} metric 1
;;
stop)
ifconfig lo down
ifconfig eth0 down
ifconfig eth1 down
;;
*)
echo "Usage: /etc/init.d/network.0 {start|stop}"
exit 1
;;
esac
exit 0
---------- s n i p p ----------
---------------------------------------------------------------------------
Turbo _ /// If there are no Amigas in heaven, send me to HELL!
^^^^^ \\\/
Unix _IS_ user friendly - it's just selective about who its friends are !
Turbo Fredriksson Tel: +46-704-697645
S-415 10 Göteborg turbo@tripnet.se
SWEDEN www5.tripnet.se/~turbo
My PGP key can be found at: 'www5.tripnet.se/~turbo/pgp.html'
Key fingerprint = B7 92 93 0E 06 94 D6 22 98 1F 0B 5B FE 33 A1 0B
---------------------------------------------------------------------------
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: