From 1a068334f51cbec44553fb385a8b4758d60d999f Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Fri, 13 Sep 2002 14:03:36 +0000 Subject: allow devfsd to be restarted after update. --- perl-install/live_install2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/live_install2') 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"; -- cgit v1.2.1