summaryrefslogtreecommitdiffstats
path: root/perl-install/live_install2
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-09-13 14:03:36 +0000
committerFrancois Pons <fpons@mandriva.com>2002-09-13 14:03:36 +0000
commit1a068334f51cbec44553fb385a8b4758d60d999f (patch)
tree1335578fe879988dafe4fc933908a55056de57d8 /perl-install/live_install2
parent2bf301d8503ab76a3748f7f3fdcf483582e9b03a (diff)
downloaddrakx-backup-do-not-use-1a068334f51cbec44553fb385a8b4758d60d999f.tar
drakx-backup-do-not-use-1a068334f51cbec44553fb385a8b4758d60d999f.tar.gz
drakx-backup-do-not-use-1a068334f51cbec44553fb385a8b4758d60d999f.tar.bz2
drakx-backup-do-not-use-1a068334f51cbec44553fb385a8b4758d60d999f.tar.xz
drakx-backup-do-not-use-1a068334f51cbec44553fb385a8b4758d60d999f.zip
allow devfsd to be restarted after update.
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";