summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authordanw <danw@pkgsrc.org>2004-04-24 19:17:09 +0000
committerdanw <danw@pkgsrc.org>2004-04-24 19:17:09 +0000
commit52c490d5f101c5bb90f34e169ed6417f09f3affd (patch)
treead36ec96670dee949b995cf5700d92d183dc25a2 /bootstrap
parent0bf9c2ac9fae8eed9c059e0a969c781bcb418603 (diff)
downloadpkgsrc-52c490d5f101c5bb90f34e169ed6417f09f3affd.tar.gz
make sure /sbin and /usr/sbin are in $PATH. pkg/24010
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap6
-rwxr-xr-xbootstrap/ufsdiskimage3
2 files changed, 7 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 90fa74df0f8..e28be83b257 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.15 2004/04/23 02:03:18 tv Exp $
+# $NetBSD: bootstrap,v 1.16 2004/04/24 19:17:09 danw Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -184,6 +184,10 @@ build_start=`date`
echo_msg "bootstrap command: $0 $@"
echo_msg "bootstrap started: $build_start"
+if [ "x${PRESERVE_PATH}" != "xyes" ]; then
+ PATH="${PATH}:/sbin:/usr/sbin"
+fi
+
overpath=""
root_user=root
case "$opsys" in
diff --git a/bootstrap/ufsdiskimage b/bootstrap/ufsdiskimage
index e0c750ad00b..331ee945b96 100755
--- a/bootstrap/ufsdiskimage
+++ b/bootstrap/ufsdiskimage
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ufsdiskimage,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+# $NetBSD: ufsdiskimage,v 1.2 2004/04/24 19:17:09 danw Exp $
_getdevice_and_halfway_mount()
{
@@ -102,5 +102,6 @@ main()
esac
}
+PATH=${PATH}:/sbin:/usr/sbin
main "$@"
exit $?