summaryrefslogtreecommitdiffstats
path: root/perl-install/live_install2
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/live_install2')
-rwxr-xr-xperl-install/live_install26
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/live_install2 b/perl-install/live_install2
index a1eec4486..b5a2ea877 100755
--- a/perl-install/live_install2
+++ b/perl-install/live_install2
@@ -6,7 +6,8 @@ $dir .= "/../../..";
#- allow devfsd to enable a faster upgrade.
system "modprobe loop";
-system "killall devfsd >/dev/null 2>/dev/null";
+my $devfsd_pid = `/sbin/pidof devfsd`;
+$devfsd_pid > 0 and kill 15, $devfsd_pid;
#- perl version of the install, we use directly the version we found,
#- this means there SHOULD BE no module compiled for an older version of perl
@@ -60,4 +61,7 @@ $ENV{DISPLAY} and system "xset", "fp", "rehash";
system "/bin/rm", "-rf", "/tmp/drakx";
system "/bin/rm", "-rf", "/tmp/rhimage";
+#- restore devfsd if it was running.
+$devfsd_pid > 0 and system "/sbin/devfsd /dev";
+
exec "/bin/sync";