]> err.no Git - dotfiles/commitdiff
better solaris solution
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 23 Nov 2003 15:47:20 +0000 (15:47 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 23 Nov 2003 15:47:20 +0000 (15:47 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@218 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

link-dotfiles

index 38092b87eefc7e39b327c7f980608c823fe90f9a..4c0d29f9546577fdbc9742e2fc50bb99bcb5c924 100755 (executable)
@@ -1,10 +1,11 @@
 #! /bin/sh
 
-# SunOS /bin/sh is broken wrt local. *sigh*
-if test "`uname -s`" = "SunOS" -a "$RUNNING_UNDER_BASH" = ""; then
-    RUNNING_UNDER_BASH=1
-    export RUNNING_UNDER_BASH
-    exec bash $0 "$@"
+# Do the solaris dance to get a real shell.
+if [ ! -d ~root ]  ; then
+    if exec /usr/xpg4/bin/sh $0 "$@" ; then
+        echo "No POSIX shell available, call <person responsible>";
+        exit
+    fi
 fi
 
 KNOWNMD5SUMS="b5239e7dfbecaf832e18a5377b794b09 40b31b69676f239da8a2c7f0b375b879 ef6c1cd4a3d89a2c0f6b16d209d27ab7 57a81d1c93493a29c4c3eba3490c8d2a d8e9ecd0b80102c82966a045544bbf68 e9d2739d6f3d7672222c07d901d46e21 d96c12497684c56ea77d9d1f589b0634 cc44c6693e6313d26d665aac57f7b7f7 f2a26bacd5cd1a2a5c294dbb2da8d58b"