From 8432907799d21f41a75ed2e66d817e529eff6c85 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 18 Nov 2003 23:19:24 +0000 Subject: launch dnotify only when we have a key --- move/move.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'move') diff --git a/move/move.pm b/move/move.pm index 4d1ef9820..10ae77852 100644 --- a/move/move.pm +++ b/move/move.pm @@ -403,9 +403,11 @@ sub install2::startMove { output("/var/run/console/$username", 1); run_program::run('pam_console_apply'); - run_program::raw({ detach => 1 }, '/usr/bin/dnotify', '-MCR', '/etc', '-r', '-e', '/usr/bin/etc-monitorer.pl', '{}') or die "dnotify not found!"; - output '/var/lib/machine_ident', machine_ident(); - + if (cat_('/proc/mounts') =~ m|\s/home\s|) { + run_program::raw({ detach => 1 }, '/usr/bin/dnotify', '-MCR', '/etc', '-r', '-e', '/usr/bin/etc-monitorer.pl', '{}') or die "dnotify not found!"; + output '/var/lib/machine_ident', machine_ident(); + } + if (fork()) { sleep 1; log::l("DrakX waves bye-bye"); -- cgit v1.2.1