From e9808d4ad646941bfdcfd8f8fbf48d0fa2301c30 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 30 May 2008 11:07:23 +0000 Subject: service_harddrake: fix autoconfiguration of harddisks (because an undefined configurator will make harddrake skip all disks) --- perl-install/harddrake/data.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/harddrake') diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm index 9bc657a55..537cb177d 100644 --- a/perl-install/harddrake/data.pm +++ b/perl-install/harddrake/data.pm @@ -46,12 +46,12 @@ sub set_removable_configurator { sub set_media_auto_configurator { my ($device) = @_; - return "/usr/sbin/drakupdate_fstab --auto --add $device->{device}" if is_auto_configurable_media($device); + is_auto_configurable_media($device) ? "/usr/sbin/drakupdate_fstab --auto --add $device->{device}" : (); } sub set_media_remover { my ($device) = @_; - return "/usr/sbin/drakupdate_fstab --del $device->{device}" if is_auto_configurable_media($device); + is_auto_configurable_media($device) ? "/usr/sbin/drakupdate_fstab --del $device->{device}" : (); } my $modules_conf = modules::any_conf->read; -- cgit v1.2.1