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


1.1
date	2001.04.25.03.43.37;	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$

if [ "$2" = "both" -o "$2" = "boot" ]; then
	echo "$1" >/etc/defaultdomain
fi
if [ "$2" = "both" -o "$2" = "now" ]; then
	domainname $1
fi
if [ "$?" = "0" ]; then
	echo "Domainname has been changed to $1"
else
	echo "Failed to change domainname to $1"
fi
@
