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/XFdrake | |
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/XFdrake')
-rwxr-xr-x | perl-install/standalone/XFdrake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/standalone/XFdrake b/perl-install/standalone/XFdrake index a7e3c3249..7c3a5d13b 100755 --- a/perl-install/standalone/XFdrake +++ b/perl-install/standalone/XFdrake @@ -25,6 +25,8 @@ use Xconfigurator; use Xconfig; use c; +$::isEmbedded = ($::XID, $::CCPID) = "@ARGV" =~ /--embedded (\w+) (\w+)/; + local $_ = join '', @ARGV; /-h/ and die "usage: XFdrake [--xf3] [--beginner] [--expert] [--auto] [--noauto] [--skiptest] [--testing]\n"; @@ -39,6 +41,7 @@ $::noauto = /-noauto/; $::testing = /-testing/; $i->{skiptest} = /-skiptest/; +begin: my $in = interactive->vnew('su'); my $f = "/usr/X11R6/lib/X11/Cards"; @@ -53,4 +56,6 @@ Xconfig::getinfoFromXF86Config($i) if $0 =~ Xdrakres; Xconfig::getinfo($i); Xconfigurator::main('', $i, $in, 0, \&standalone::pkgs_install); -$in->exit(0); +!$::isEmbedded and $in->exit(0); +kill(USR1, $::CCPID); +#goto begin; |