summaryrefslogtreecommitdiff
path: root/policy-rc.d
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-04-22 16:04:55 +0000
committerJonas Smedegaard <dr@jones.dk>2006-04-22 16:04:55 +0000
commit7417f272f8a04d924038e469f6a3e59f11fe2b02 (patch)
tree0805bc45e01bd399612075db1eec31edfb502a1f /policy-rc.d
parent3c85a0cb8e0f71829b89c982f067504d394ccd70 (diff)
Whoops, invert logic of when to allow/suppress.
Diffstat (limited to 'policy-rc.d')
-rwxr-xr-xpolicy-rc.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/policy-rc.d b/policy-rc.d
index bb4dcd3..bf0e993 100755
--- a/policy-rc.d
+++ b/policy-rc.d
@@ -1,6 +1,6 @@
#!/bin/sh
-# $Id: policy-rc.d,v 1.2 2006-04-22 16:03:24 jonas Exp $
+# $Id: policy-rc.d,v 1.3 2006-04-22 16:04:55 jonas Exp $
#
# Copyright © 2006 Jonas Smedegaard <dr@jones.dk>
# Description: Suppress system V scripts if invoked within a chroot.
@@ -55,7 +55,7 @@ EOF
exit 0
fi
-if [ -r /proc/1/root ]; then
+if [ ! -r /proc/1/root ]; then
if ! [ "$quiet" ]; then
echo >&2 "Chroot environment detected, suppressing sysV script."
fi