Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (12 sloc) 0.249 kB
#!/bin/sh
set -e
if [ $# -ne 1 ] ; then
echo "usage $0 <hostname>" 1>&2
exit 1
fi
HOSTNAME=$1
# Update system configuration
sed -i -e "s/^\(HOSTNAME=\).*$/\1$1/g" /etc/sysconfig/network
# Set current hostname
hostname "$HOSTNAME"
exit 0
Jump to Line
Something went wrong with that request. Please try again.