aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-06 23:11:58 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-11-06 23:12:24 +0000
commit91e28ab775e2bcfb343ba2e2c8b7db0289e11f70 (patch)
treec0e6f2e73740b774876fd5e5b59350593317dbbf /init.d
parent87daa26ca77a4d564959f7ab263cbc53d8925fb5 (diff)
init.d/hostname: Document checkbashism false positive.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'init.d')
-rw-r--r--init.d/hostname.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/hostname.in b/init.d/hostname.in
index 2b0ec810..5d8ce28d 100644
--- a/init.d/hostname.in
+++ b/init.d/hostname.in
@@ -10,7 +10,9 @@ depend() {
start()
{
- hostname=${hostname-${HOSTNAME-localhost}}
+ # HOSTNAME variable used to be defined in caps in conf.d/hostname.
+ # It is also a magic variable in bash.
+ hostname=${hostname-${HOSTNAME-localhost}} # checkbashisms: false positive
ebegin "Setting hostname to $hostname"
hostname "$hostname"
eend $? "Failed to set the hostname"