+Compatibility: bash-2.0/RHEL3
[nethome.git] / boot
diff --git a/boot b/boot
index 63fcf5a..fd56b32 100755 (executable)
--- a/boot
+++ b/boot
@@ -5,6 +5,11 @@
 
 set -e
 abs="${BASH_SOURCE[0]}"
+# bash-2.0 (RHEL3)
+if [ -z "$abs" ];then
+       abs="$PWD"
+       echo >&2 "WARNING: Defaulting to: HOME=$abs"
+fi
 if [ "$abs" = "${abs#/}" ];then
        abs="$PWD/$abs"
 fi