summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-10-16 14:46:30 +0000
committerRoy Marples <uberlord@gentoo.org>2006-10-16 14:46:30 +0000
commit8c614115ab5141e5e45990ec5664f9029631cc7a (patch)
treece94a2f30b1fafbcc0586e9f0fce4d4f5b7d9f6e
parentAdded warning about clamping MSS when running ppp on a router, #149525 (diff)
downloadbaselayout-8c614115ab5141e5e45990ec5664f9029631cc7a.tar.gz
baselayout-8c614115ab5141e5e45990ec5664f9029631cc7a.tar.bz2
baselayout-8c614115ab5141e5e45990ec5664f9029631cc7a.zip
Stop rc-update descending into SCM directories.
Fixes #138188 thanks to Daniele Varrazzo. svn path=/branches/baselayout-1_12/; revision=2316
-rwxr-xr-xsbin/rc-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/rc-update b/sbin/rc-update
index 82120cf5..5e52353f 100755
--- a/sbin/rc-update
+++ b/sbin/rc-update
@@ -139,10 +139,10 @@ show() {
myscripts=$(cd "${ROOT}"etc/init.d; ls)
# Sanity check to make sure everything is kosher ...
- for x in $(find "${ROOT}"etc/runlevels -xtype l) ; do
- ewarn "Broken runlevel entry: ${x}"
+ for x in $(find "${ROOT}"etc/runlevels -type l) ; do
+ [[ -e ${x} ]] || ewarn "Broken runlevel entry: ${x}"
done
- for x in $(find "${ROOT}"etc/runlevels ! -type l -a ! -type d) ; do
+ for x in $(find "${ROOT}"etc/runlevels -maxdepth 1 ! -type l -a ! -type d) ; do
ewarn "Invalid runlevel entry: ${x}"
done