]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Make HOSTNAME configureable in .config.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Jul 2009 13:43:26 +0000 (15:43 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 17 Jul 2009 13:43:26 +0000 (15:43 +0200)
tools/make-constants

index 99a40924e6a635978b76e7332cc047d479f86404..51c956ff3e6ee1c9b88cc15cc95be0d7ca53854a 100644 (file)
@@ -55,7 +55,7 @@ BUILD_DEBUG=0
 PARALLELISMFLAGS=-j$(( $(grep processor < /proc/cpuinfo | wc -l) * 2 + 1 ))
 
 # Default hostname
-HOSTNAME=$(hostname -f || hostname)
+HOSTNAME=${HOSTNAME-$(cat /proc/sys/kernel/hostname)}
 
 # Default scheduler
 ICECC_SCHEDULER="minerva.ipfire.org"