Skip FreeBSD actions like NETWORKING
authorJamie Cameron <jcameron@webmin.com>
Tue, 2 Jun 2009 04:43:10 +0000 (04:43 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 2 Jun 2009 04:43:10 +0000 (04:43 +0000)
init/init-lib.pl

index bf5179c..8c98792 100755 (executable)
@@ -1251,6 +1251,7 @@ foreach my $dir (split(/\s+/, $config{'rc_dir'})) {
        opendir(DIR, $dir);
        foreach my $f (readdir(DIR)) {
                next if ($f =~ /^\./ || $f =~ /\.(bak|tmp)/i);
+               next if (uc($f) eq $f);         # Dummy actions are upper-case
                local $name = $f;
                $name =~ s/\.sh$//;
                local $data = &read_file_contents("$dir/$f");