NetBSD/share/sushi/network/hostname/script1

9 lines
138 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script1,v 1.1 2001/04/25 03:43:29 garbled Exp $
if [ -f "/etc/myname" ]; then
cat /etc/myname
else
hostname -s
fi