[Pkg-sysvinit-devel] /etc/init.d/hostname.sh input

Nick Schmalenberger nick at schmalenberger.us
Tue Mar 1 11:05:51 UTC 2011


Is line 26 of /etc/init.d/hostname.sh supposed to work if
/proc/sys/kernel/hostname is (none)? In line 26 HOSTNAME is
getting set to (none), which prevents it from getting set to
localhost but is an invalid input to hostname on line 32 and
isn't as good as localhost for local email to root and such. How
should hostname.sh handle that? I've tried changing line 32 to
hostname "$HOSTNAME" || hostname localhost which seems to work,
but its redundant with line 29 and it seems like a hack. Thanks.
Nick Schmalenberger



More information about the Pkg-sysvinit-devel mailing list