]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- cleaner solution for empty hostname
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 20 Mar 2007 11:48:21 +0000 (11:48 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 20 Mar 2007 11:48:21 +0000 (11:48 +0000)
svn-id: @8387

rc.d/rc.sysinit

index 89c2e36c5b97a7a2c7fcb2e95e62f021b713251a..3106b1bc917cda7e131dfd65fb28d8aeb91e8ba7 100755 (executable)
@@ -129,8 +129,11 @@ if ! is_no "$RC_PROMPT"; then
 fi
 
 # Set the hostname
-[ -z "${HOSTNAME}" ] && HOSTNAME=$(hostname)
-run_cmd "$(nls 'Host:') ${HOSTNAME}" hostname ${HOSTNAME}
+if [ -z "${HOSTNAME}" ]; then
+       show "$(nls 'Host:') $(hostname)" ; ok
+else
+       run_cmd "$(nls 'Host:') ${HOSTNAME}" hostname ${HOSTNAME}
+fi
 
 # Set the NIS domain name
 if [ -n "$NISDOMAIN" ]; then
This page took 0.376912 seconds and 4 git commands to generate.