On Tue, 12 Jul 2005 at 2:59pm +0200, Thomas Hood wrote:

Package: sysv-rc-conf
Version: 0.99-1

cd /etc/rcS.d
ln -s ../init.d/foo .S80foo   # Note the dot before the capital letter ess

sysv-rc-conf now displays foo as enabled.

Instead, sysv-rc-conf should ignore hidden files altogether.

Good point. Made a quick patch to the main cvs tree, this will be included in the next release.

Just as an FYI, here's the patch:

diff -u -r1.41 sysv-rc-conf.pl
--- sysv-rc-conf.pl     11 May 2005 17:58:14 -0000      1.41
+++ sysv-rc-conf.pl     12 Jul 2005 20:25:55 -0000
@@ -414,7 +414,7 @@
     while ( defined(my $service = readdir INITD) ) {
        next if $service =~ /\.sh$/; # see the debian policy manual
         next if $service =~ /\.dpkg-/; # see the debian policy manual
-       next if $service =~ /^\.+$/; # ignore . and ..
+       next if $service =~ /^\./; # ignore ., .., and any dot (hidden) files
         next if $service =~ /^rc$/; # ignore rc
         next if $service =~ /^rcS$/; # ignore rcS
         next if $service =~ /^skeleton$/; # ignore the sample init.d file

Thanks Thomas,

-Joe Oppegaard


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to