summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-18 23:19:24 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-18 23:19:24 +0000
commit8432907799d21f41a75ed2e66d817e529eff6c85 (patch)
treec87cd2446f37bb00e91a0da1f3dbe23b0e5b0d1b /move/move.pm
parent2c87dd615c7fdccd8d91adec0e20dc0089e08932 (diff)
downloaddrakx-backup-do-not-use-8432907799d21f41a75ed2e66d817e529eff6c85.tar
drakx-backup-do-not-use-8432907799d21f41a75ed2e66d817e529eff6c85.tar.gz
drakx-backup-do-not-use-8432907799d21f41a75ed2e66d817e529eff6c85.tar.bz2
drakx-backup-do-not-use-8432907799d21f41a75ed2e66d817e529eff6c85.tar.xz
drakx-backup-do-not-use-8432907799d21f41a75ed2e66d817e529eff6c85.zip
launch dnotify only when we have a key
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm8
1 files changed, 5 insertions, 3 deletions
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");