diff options
author | damien <damien@mandriva.com> | 2001-02-08 10:11:37 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-02-08 10:11:37 +0000 |
commit | aca4c306be5e8d757fbac86c9de3f6f3862cc471 (patch) | |
tree | 3f63882e84775916b5aea7a54a2ad142dfc567d8 /perl-install/standalone/printerdrake | |
parent | 842c74ed3d9e2396cf1fb85f14e34258bbd13cd6 (diff) | |
download | drakx-backup-do-not-use-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar drakx-backup-do-not-use-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar.gz drakx-backup-do-not-use-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar.bz2 drakx-backup-do-not-use-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar.xz drakx-backup-do-not-use-aca4c306be5e8d757fbac86c9de3f6f3862cc471.zip |
implemented or updated embedded mode
Diffstat (limited to 'perl-install/standalone/printerdrake')
-rwxr-xr-x | perl-install/standalone/printerdrake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake index 0ad84058c..0a3fbcf2f 100755 --- a/perl-install/standalone/printerdrake +++ b/perl-install/standalone/printerdrake @@ -26,6 +26,7 @@ use printerdrake; use printer; use c; +$::isEmbedded = ($::XID, $::CCPID) = "@ARGV" =~ /--embedded (\w+) (\w+)/; local $_ = join '', @ARGV; /-h/ and die "usage: printerdrake [--beginner] [--expert] [--auto] [--noauto] [--skiptest] [--testing]\n"; @@ -44,6 +45,8 @@ $printer->{mode} ||= 'CUPS'; #- assume this default if nothing found. my $in = vnew interactive('su'); +begin: printerdrake::main($printer, $in, sub { $in->standalone::pkgs_install(@_) }); -$in->exit(0); +$::isEmbedded ? kill(USR1, $::CCPID) : $in->exit(0); +goto begin; |