diff options
author | danw <danw> | 2004-04-24 19:17:09 +0000 |
---|---|---|
committer | danw <danw> | 2004-04-24 19:17:09 +0000 |
commit | 4db2fdd89751d6aedc290e003df74b9d916faf14 (patch) | |
tree | ad36ec96670dee949b995cf5700d92d183dc25a2 /bootstrap | |
parent | 03b74456becf184d24c818eae1d015e29c67f0d4 (diff) | |
download | pkgsrc-4db2fdd89751d6aedc290e003df74b9d916faf14.tar.gz |
make sure /sbin and /usr/sbin are in $PATH. pkg/24010
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 6 | ||||
-rwxr-xr-x | bootstrap/ufsdiskimage | 3 |
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 $? |