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


1.1
date	2001.04.25.03.43.35;	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 [ "$1" = "both" -o "$1" = "boot" ]; then
	echo "$2" >/etc/mygate
fi
if [ "$1" = "both" -o "$1" = "now" ]; then
	route delete default
	route add default $2
fi
if [ "$?" = "0" ]; then
	echo "Default route has been changed to $2"
else
	echo "Failed to change default route to $2"
fi
@
