Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (12 sloc) 249 Bytes
set -e
if [ $# -ne 1 ] ; then
echo "usage $0 <hostname>" 1>&2
exit 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.