pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap make sure /sbin and /usr/sbin are in $PATH. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d6b9296791e
branches:  trunk
changeset: 473797:3d6b9296791e
user:      danw <danw%pkgsrc.org@localhost>
date:      Sat Apr 24 19:17:09 2004 +0000

description:
make sure /sbin and /usr/sbin are in $PATH. pkg/24010

diffstat:

 bootstrap/bootstrap    |  6 +++++-
 bootstrap/ufsdiskimage |  3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 890ac6d0b876 -r 3d6b9296791e bootstrap/bootstrap
--- a/bootstrap/bootstrap       Sat Apr 24 18:53:40 2004 +0000
+++ b/bootstrap/bootstrap       Sat Apr 24 19:17:09 2004 +0000
@@ -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 @@
 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 -r 890ac6d0b876 -r 3d6b9296791e bootstrap/ufsdiskimage
--- a/bootstrap/ufsdiskimage    Sat Apr 24 18:53:40 2004 +0000
+++ b/bootstrap/ufsdiskimage    Sat Apr 24 19:17:09 2004 +0000
@@ -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 @@
        esac
 }
 
+PATH=${PATH}:/sbin:/usr/sbin
 main "$@"
 exit $?



Home | Main Index | Thread Index | Old Index