projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a4aa1ce
)
set-hostname: fix missing quotes (thanks mrud)
v0.8.36
author
Michael Prokop
<mika@grml.org>
Sun, 18 Oct 2009 19:33:16 +0000
(21:33 +0200)
committer
Michael Prokop
<mika@grml.org>
Sun, 18 Oct 2009 19:33:16 +0000
(21:33 +0200)
etc/grml/pump-scripts.d/set-hostname
patch
|
blob
|
history
diff --git
a/etc/grml/pump-scripts.d/set-hostname
b/etc/grml/pump-scripts.d/set-hostname
index
0401075
..
6682d3e
100755
(executable)
--- a/
etc/grml/pump-scripts.d/set-hostname
+++ b/
etc/grml/pump-scripts.d/set-hostname
@@
-13,9
+13,9
@@
# and if running in live mode
if ! checkbootparam 'nodhcphostname' && [ -f /etc/grml_cd ] ; then
- hostname=$(busybox nslookup
$3
| awk '/Address 1: '$3'/ {print $4}')
- [ -n
$hostname
] || exit 1
+ hostname=$(busybox nslookup
"$3"
| awk '/Address 1: '$3'/ {print $4}')
+ [ -n
"$hostname"
] || exit 1
- grml-hostname
$hostname
+ grml-hostname
"$hostname"
hostname -F /etc/hostname
fi