#! /bin/sh
#
# 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1988
# LICENSED MATERIALS - PROPERTY OF IBM
# REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
#
# $Header:hostname.sh 12.0$ 
# $ACIS:hostname.sh 12.0$ 
# $Source: /ibm/acis/usr/sys/dist/bin/RCS/hostname.sh,v $ 
newline="
"
case "$#" in
0)
	exec /etc/syscall gethostname \&0 200 \; printf "%s$newline" \&0
	;;
1)
	exec /etc/syscall sethostname "'$1" '#'"$1"
	;;
*)
	echo "$0: usage: [hostname]" >&2
	exit 1
esac
