summaryrefslogtreecommitdiff
path: root/policy-rc.d
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-01-16 09:59:43 +0000
committerJonas Smedegaard <dr@jones.dk>2007-01-16 09:59:43 +0000
commit5a92e5262bede5b11fbf2dcfb2b2038d9d5d5aae (patch)
treeead65682425047b0df972148c13f883f90e84744 /policy-rc.d
parent666e0028da02563bf4603e5d3e60e41c01a8e448 (diff)
Fix reverse chroot detection. Strip udev-related message.
Diffstat (limited to 'policy-rc.d')
-rwxr-xr-xpolicy-rc.d5
1 files changed, 2 insertions, 3 deletions
diff --git a/policy-rc.d b/policy-rc.d
index 8972383..9e0b9e7 100755
--- a/policy-rc.d
+++ b/policy-rc.d
@@ -1,6 +1,6 @@
#!/bin/sh
-# $Id: policy-rc.d,v 1.4 2007-01-03 14:38:03 jonas Exp $
+# $Id: policy-rc.d,v 1.5 2007-01-16 09:59:43 jonas Exp $
#
# Copyright © 2006 Jonas Smedegaard <dr@jones.dk>
# Description: Suppress system V scripts if invoked within a chroot.
@@ -34,7 +34,6 @@ chrooted() {
# root, so we're *not* in a chroot and hence return false.
return 1
fi
- echo "A chroot environment has been detected, udev not started."
return 0
}
@@ -67,7 +66,7 @@ EOF
exit 0
fi
-if ! chrooted; then
+if chrooted; then
if ! [ "$quiet" ]; then
echo >&2 "Chroot environment detected, suppressing sysV script."
fi