From 39825a31858a5b9412871bc6046faaab7b80a502 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 30 Mar 2011 01:58:09 +0200 Subject: fixed loading of node configs --- bashrc/node/init.sh | 6 +++++- bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh | 1 + bashrc/node/starsystems/pkg_path.sh | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh delete mode 100644 bashrc/node/starsystems/pkg_path.sh diff --git a/bashrc/node/init.sh b/bashrc/node/init.sh index 0fb0b6b..43482b0 100644 --- a/bashrc/node/init.sh +++ b/bashrc/node/init.sh @@ -1,6 +1,10 @@ # get node specific data -declare -r _NODENAME=${HOSTNAME} +if env | grep HOSTNAME; then + declare -r _NODENAME=${HOSTNAME} +else + declare -r _NODENAME=$(hostname) +fi if [[ -n "${_NODENAME}" ]]; then _load node '*' diff --git a/bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh b/bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh new file mode 100644 index 0000000..d459c2e --- /dev/null +++ b/bashrc/node/starsystems.inf.fu-berlin.de/pkg_path.sh @@ -0,0 +1 @@ +export PKG_PATH="http://ftp.spline.inf.fu-berlin.de/pub/OpenBSD/4.8/packages/amd64" diff --git a/bashrc/node/starsystems/pkg_path.sh b/bashrc/node/starsystems/pkg_path.sh deleted file mode 100644 index d459c2e..0000000 --- a/bashrc/node/starsystems/pkg_path.sh +++ /dev/null @@ -1 +0,0 @@ -export PKG_PATH="http://ftp.spline.inf.fu-berlin.de/pub/OpenBSD/4.8/packages/amd64" -- cgit v1.2.3