diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-02-09 10:55:59 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-02-09 10:55:59 +0000 |
commit | f95da7e84ecd35de9056ccec0dceca1feb043fa6 (patch) | |
tree | 8673ba4b5ce60ac48a43962bb60ec66a1a91a633 | |
parent | d210c772d8b6c85daa7bcc26338eae4b8853bd30 (diff) | |
download | drakx-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
-rwxr-xr-x | perl-install/standalone/service_harddrake | 2 |
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); } |