From 8c614115ab5141e5e45990ec5664f9029631cc7a Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 16 Oct 2006 14:46:30 +0000 Subject: Stop rc-update descending into SCM directories. Fixes #138188 thanks to Daniele Varrazzo. svn path=/branches/baselayout-1_12/; revision=2316 --- sbin/rc-update | 6 +++--- 1 file 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 -- cgit v1.2.3-65-gdbad