#!/bin/bash # # description: Set hostname at boot time. # Even if network connection is not desired, # some programs like emacs delay their startup # by a few seconds if no hostname is set. # # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" # See how we were called. case "$1" in start) cmd_run_log_box "Setting hostname" hostname $(cat /etc/hostname) ;; stop) ;; *) echo $"Usage: $0 {start|stop}" exit ${EXIT_CODE_FAILURE} esac exit $?