A script to automate the hostname changing process.
Usage:
Change Hostname: chhostname.sh [NEW_HOSTNAME]
Help: chhostname.sh -h
List config file contents: chhostname.sh -l
Manually edit config files: chhostname.sh -m
If you are using interactively and something doesnt look right, choose [N] to not make changes. If you have run the script and not rebooted, re-running will not properly detect domain name. If all else fails, run in manual mode.
Each time a change is made, backup files are created in /etc.