projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SW: Update to grml kernel 2.6.33.
[grml-live.git]
/
etc
/
grml
/
fai
/
config
/
scripts
/
GRMLBASE
/
34-hosts
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/34-hosts
b/etc/grml/fai/config/scripts/GRMLBASE/34-hosts
index
8038cc0
..
961fc5c
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/34-hosts
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/34-hosts
@@
-14,9
+14,7
@@
HOSTNAME=''
[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local
[ -n "$HOSTNAME" ] || HOSTNAME=grml
[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local
[ -n "$HOSTNAME" ] || HOSTNAME=grml
-if [ -r /etc/grml/fai/files/etc/hosts ] ; then
- cp /etc/grml/fai/files/etc/hosts $target/etc/hosts
-fi
+fcopy /etc/hosts
# replace $HOSTNAME with the real hostname:
sed -i "s/\$HOSTNAME/$HOSTNAME/" $target/etc/hosts
# replace $HOSTNAME with the real hostname:
sed -i "s/\$HOSTNAME/$HOSTNAME/" $target/etc/hosts