summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-02-09 10:55:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-02-09 10:55:59 +0000
commitf95da7e84ecd35de9056ccec0dceca1feb043fa6 (patch)
tree8673ba4b5ce60ac48a43962bb60ec66a1a91a633 /perl-install/standalone
parentd210c772d8b6c85daa7bcc26338eae4b8853bd30 (diff)
downloaddrakx-f95da7e84ecd35de9056ccec0dceca1feb043fa6.tar
drakx-f95da7e84ecd35de9056ccec0dceca1feb043fa6.tar.gz
drakx-f95da7e84ecd35de9056ccec0dceca1feb043fa6.tar.bz2
drakx-f95da7e84ecd35de9056ccec0dceca1feb043fa6.tar.xz
drakx-f95da7e84ecd35de9056ccec0dceca1feb043fa6.zip
prevent adding spurious empty lines at end of /etc/hotplub/blacklist on stop
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 5f9cd630d..e25f48b9d 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -21,7 +21,7 @@ my $force = member('--force', @ARGV);
my $mode = $ARGV[0] eq 'stop' && 'stop';
if ($mode eq 'stop') {
- append_to_file('/etc/hotplug/blacklist', "\nsnd-usb-audio\n");
+ substInFile { $_ .= "snd-usb-audio\n" if eof } '/etc/hotplug/blacklist';
c::_exit(0);
}