diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-20 14:17:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-20 14:17:07 +0000 |
commit | f98177576ded96c74ca1ef9d04674737e4fee404 (patch) | |
tree | 92a85219e37e637062f83ef06b319b2fe4629105 /perl-install/standalone | |
parent | 16d0c766f22432b2445768b57c878a7e3d67a495 (diff) | |
download | drakx-f98177576ded96c74ca1ef9d04674737e4fee404.tar drakx-f98177576ded96c74ca1ef9d04674737e4fee404.tar.gz drakx-f98177576ded96c74ca1ef9d04674737e4fee404.tar.bz2 drakx-f98177576ded96c74ca1ef9d04674737e4fee404.tar.xz drakx-f98177576ded96c74ca1ef9d04674737e4fee404.zip |
perl_checker fixes
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/draksec | 4 | ||||
-rwxr-xr-x | perl-install/standalone/draksound | 1 | ||||
-rwxr-xr-x | perl-install/standalone/service_harddrake | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec index fe2794b52..3e98a56a3 100755 --- a/perl-install/standalone/draksec +++ b/perl-install/standalone/draksec @@ -33,8 +33,8 @@ use vars qw($MODE %options); use security::main; $MODE = 'basic'; -$0 =~ '/draksec-firewall$' and $MODE = 'firewall'; -$0 =~ '/draksec-perms$' and $MODE = 'perms'; +$0 =~ /draksec-firewall$/ and $MODE = 'firewall'; +$0 =~ /draksec-perms$/ and $MODE = 'perms'; /^-?-(\S+)$/ and $options{$1} = 1 foreach @ARGV; diff --git a/perl-install/standalone/draksound b/perl-install/standalone/draksound index 32acca45c..51b503332 100755 --- a/perl-install/standalone/draksound +++ b/perl-install/standalone/draksound @@ -25,6 +25,7 @@ use interactive; use common; use harddrake::sound; use modules; +use detect_devices; my $in = 'interactive'->vnew(); diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 29e811ec0..6fc2611d1 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -42,11 +42,11 @@ foreach (@harddrake::data::tree) { my @was_removed = difference2([ keys %$oldconfig ], [ keys %ID ]); if (@was_removed) { $msg .= N("Some devices in the \"%s\" hardware class were removed:\n", $item) . - "- ". harddrake::data::custom_id($oldconfig->{$_}, $item) ." was removed\n" foreach @was_removed . "\n"; + "- " . harddrake::data::custom_id($oldconfig->{$_}, $item) . " was removed\n" foreach @was_removed . "\n"; } my @added = difference2([ keys %ID ], [ keys %$oldconfig ]); $msg .= N("Some devices were added:\n", $item) if @added; - $msg .= "- ". harddrake::data::custom_id($ID{$_}, $item) ." was added\n" foreach @added; + $msg .= "- " . harddrake::data::custom_id($ID{$_}, $item) . " was added\n" foreach @added; @added || @was_removed or next; next unless -x $configurator; my ($pid, $no); |