search for: hostname_file

Displaying 2 results from an estimated 2 matches for "hostname_file".

2009 Jun 04
1
[PATCH node] Hostname is now properly persisted between reboots. rhbz#504166
...,13 @@ trap '__st=$?; stop_log; exit $__st' 0 trap 'exit $?' 1 2 13 15 +warn() { printf '%s\n' "$*" >&2; } + +if ! is_local_storage_configured; then + warn "Local storage must be configured prior to setting the hostname." + exit 99 +fi + HOSTNAME_FILE="/etc/sysconfig/network" function set_hostname { @@ -17,8 +24,9 @@ set /files$HOSTNAME_FILE/HOSTNAME "$1" EOF rc=$? if [ $rc = 0 ]; then - /bin/hostname "$1" - rc=$? + /bin/hostname "$1" + rc=$? + if [ $rc -eq 0 ]; the...
2009 Jun 08
1
Rebased patch...
This is a rebase of the original patch sent.