diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-12-03 13:56:28 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-12-03 13:56:28 +0000 |
commit | e87e3f7b9bb17eeecd95b68cd074d6fe9153f0dd (patch) | |
tree | 351725e8fb70b4a86a341c16f328dc2f841b4f9c /move/move.pm | |
parent | ecc1d837145db1e68222a3ef912c7f9a5a3538a9 (diff) | |
download | drakx-backup-do-not-use-e87e3f7b9bb17eeecd95b68cd074d6fe9153f0dd.tar drakx-backup-do-not-use-e87e3f7b9bb17eeecd95b68cd074d6fe9153f0dd.tar.gz drakx-backup-do-not-use-e87e3f7b9bb17eeecd95b68cd074d6fe9153f0dd.tar.bz2 drakx-backup-do-not-use-e87e3f7b9bb17eeecd95b68cd074d6fe9153f0dd.tar.xz drakx-backup-do-not-use-e87e3f7b9bb17eeecd95b68cd074d6fe9153f0dd.zip |
allow easier debugging by not killing shell on #2 when starting with "shell" commandline param
Diffstat (limited to 'move/move.pm')
-rw-r--r-- | move/move.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/move/move.pm b/move/move.pm index 76ce89873..f105c8fe8 100644 --- a/move/move.pm +++ b/move/move.pm @@ -613,8 +613,10 @@ sub install2::startMove { } #- password in screensaver doesn't make sense if we keep the shell - kill 9, cat_('/var/run/drakx_shell.pid'); - output('/dev/tty2', "Killed\n"); + if (cat_('/proc/cmdline') !~ /\bshell\b/) { + kill 9, cat_('/var/run/drakx_shell.pid'); + output('/dev/tty2', "Killed\n"); + } if (fork()) { sleep 1; |