summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/XFdrake
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-02-08 10:11:37 +0000
committerdamien <damien@mandriva.com>2001-02-08 10:11:37 +0000
commitaca4c306be5e8d757fbac86c9de3f6f3862cc471 (patch)
tree3f63882e84775916b5aea7a54a2ad142dfc567d8 /perl-install/standalone/XFdrake
parent842c74ed3d9e2396cf1fb85f14e34258bbd13cd6 (diff)
downloaddrakx-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar
drakx-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar.gz
drakx-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar.bz2
drakx-aca4c306be5e8d757fbac86c9de3f6f3862cc471.tar.xz
drakx-aca4c306be5e8d757fbac86c9de3f6f3862cc471.zip
implemented or updated embedded mode
Diffstat (limited to 'perl-install/standalone/XFdrake')
-rwxr-xr-xperl-install/standalone/XFdrake7
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;