summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin>2012-07-24 13:18:00 +0000
committerjperkin <jperkin>2012-07-24 13:18:00 +0000
commita294b4393ab0535d3a63f1ccb8a812b238d2f69c (patch)
treea17ee3bd52ee52b31001b0f3604b5ecc83ab6bea /bootstrap
parent08db1132f97a8c7d17e33fd69148333de67cd7b2 (diff)
downloadpkgsrc-a294b4393ab0535d3a63f1ccb8a812b238d2f69c.tar.gz
Make bash the default shell on SmartOS.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap14
1 files changed, 11 insertions, 3 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 5ea8da66295..03904ff843e 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.178 2012/07/13 16:12:41 jperkin Exp $
+# $NetBSD: bootstrap,v 1.179 2012/07/24 13:18:00 jperkin Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -678,8 +678,16 @@ SunOS)
need_sed=yes
fi
if [ "`uname -r`" = "5.11" ]; then
- bootstrap_sh=${SH:-/bin/ksh}
- bootstrap_sh_set=set
+ case "`uname -v`" in
+ joyent_*)
+ bootstrap_sh=${SH:-/usr/bin/bash}
+ bootstrap_sh_set=set
+ ;;
+ *)
+ bootstrap_sh=${SH:-/bin/ksh}
+ bootstrap_sh_set=set
+ ;;
+ esac
else
need_ksh=yes
fi