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


1.1
date	2001.04.25.03.43.28;	author garbled;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Whew.  Add an entire networking configuration tree for sushi.  This gives
sushi the ability to do the following tasks:
Edit /etc/exports
Edit /etc/hosts
Change the hostname
Modify NIC configuration
Change the default route
Setup YP/NIS.
@
text
@#!/bin/sh
# $NetBSD$

NETWORK=`grep "^$1 " /etc/exports | grep -- '-network' | sed -e 's/.*-network \([a-zA-Z0-9.:%/]*\) *.*/\1/'`
if [ -z "$NETWORK" ]; then
	echo " "
else
	echo $NETWORK
fi
@
