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$
LIST=`grep "^$1 " /etc/exports | sed -e 's/-network [a-zA-Z0-9.:%/]*//g' \
  | sed -e 's/-mask [a-zA-Z0-9.:%/]*//g' | sed -e 's/-[a-zA-Z0-9=:]*//g' \
  | sed -e "s@@$1@@@@"`
if [ -z "$LIST" ]; then
	echo
else
	echo "$LIST"
fi
@
