pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Use /bin/mount if it exists on Linux, because ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5677485584c8
branches:  trunk
changeset: 519025:5677485584c8
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Sep 26 20:56:28 2006 +0000

description:
Use /bin/mount if it exists on Linux, because some distros (e.g. Ubuntu
Linux) do not have /sbin/mount.

diffstat:

 mk/bulk/mksandbox |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 0c8081a541c7 -r 5677485584c8 mk/bulk/mksandbox
--- a/mk/bulk/mksandbox Tue Sep 26 20:35:16 2006 +0000
+++ b/mk/bulk/mksandbox Tue Sep 26 20:56:28 2006 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: mksandbox,v 1.42 2006/06/08 01:11:43 minskim Exp $
+# $NetBSD: mksandbox,v 1.43 2006/09/26 20:56:28 minskim Exp $
 #
 #
 # Copyright (c) 2002 Alistair G. Crooks.  All rights reserved.
@@ -93,7 +93,11 @@
        idprog=/usr/bin/id
        mkdirprog="/bin/mkdir -p"
        mountflags="--bind"
-       mountprog=/sbin/mount
+       if [ -f /bin/mount ]; then
+               mountprog=/bin/mount
+       else
+               mountprog=/sbin/mount
+       fi
        paxprog=""
        sedprog=/bin/sed
        sandboxMountDirs="$sandboxMountDirs /proc"



Home | Main Index | Thread Index | Old Index