diff options
author | James Meyer <jams@linhes.org> | 2010-12-04 23:44:45 (GMT) |
---|---|---|
committer | James Meyer <jams@linhes.org> | 2010-12-04 23:44:51 (GMT) |
commit | f51fb708846d13222bd97b3f760eb3be902c0be0 (patch) | |
tree | ad25ff81828f12cb7da86384863e163cb4e001f2 /build_tools/larch7/larch0/buildscripts/larch-hosts | |
parent | 4384efe238cdfeac86fae0d8e1097a409350f8c6 (diff) | |
download | linhes_dev-f51fb708846d13222bd97b3f760eb3be902c0be0.zip |
remove old versions of larch 6 and 7
Diffstat (limited to 'build_tools/larch7/larch0/buildscripts/larch-hosts')
-rwxr-xr-x | build_tools/larch7/larch0/buildscripts/larch-hosts | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/build_tools/larch7/larch0/buildscripts/larch-hosts b/build_tools/larch7/larch0/buildscripts/larch-hosts deleted file mode 100755 index 5c57ca1..0000000 --- a/build_tools/larch7/larch0/buildscripts/larch-hosts +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# -# larch-hosts - Add hostname to /etc/hosts file (in overlay) -# -#2009.08.26 - - -# $1: path to system to be larchified ("" if running system) -# $2: path to temporary overlay directory (where the overlay is being built) - -INSTLDIR="$1" -OVERLAYDIR="$2" - -hosts="${OVERLAYDIR}/etc/hosts" -if ! [ -f ${hosts} ]; then - # If not provided in the profile rootoverlay, get it from the installation - cp ${INSTLDIR}/etc/hosts ${OVERLAYDIR}/etc -fi - -HOSTNAME="UNKNOWN" -if [ -f ${OVERLAYDIR}/etc/rc.conf ]; then - . ${OVERLAYDIR}/etc/rc.conf -else - . ${INSTLDIR}/etc/rc.conf -fi - -lh="127.0.0.1 localhost.localdomain localhost " -sed -i "s|^127\.0\.0\.1.*|${lh}${HOSTNAME}|" ${hosts} |