head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	96.03.10.19.25.25;	author ghudson;	state Exp;
branches;
next	1.1;

1.1
date	95.10.22.19.05.41;	author ghudson;	state Exp;
branches;
next	;


desc
@@


1.2
log
@jhawk's script to convert the Ultrix rc.net file into a NetBSD
script to figure out netmask, gateway, and broadcast addresses
based on the IP address.
@
text
@#!/bin/sh
# $Header: /afs/sipb/project/sipb-athena/etc.athena/arch/i386_nbsd1/RCS/makemitnetconf,v 1.1 1995/10/22 19:05:41 ghudson Exp ghudson $
SOURCE=/afs/dev/source/src/config/config/files/Ultrix/Ultrix-4.2/rc.net
DEST=mitnetconf
sed 	-e '/case $ADDR in$/,/esac$/!d'			\
	-e 's/ADDR/ifaddr/'				\
	-e 's/$NET/${ifA}.${ifB}/'			\
	-e 's/NETMASK/proto_netmask/'			\
	-e 's/GATEWAY/proto_gateway/'			\
	-e 's/BROADCAST/proto_bcast/'			\
$SOURCE > $DEST
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Header: /usr/src/distrib/i386/floppies/nfsinst/RCS/makemitnetconf,v 1.3 1995/04/19 10:26:33 jhawk Stab $
d4 1
a4 1
DEST=dot.mitnetconf
@
