summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-07 18:31:30 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:28:16 +0100
commit4604550867df4dd5e2cea4fd5f934a037a6a9e97 (patch)
tree9b96d3e0b9e5e7eb53f30ca62ad2df980a69d756
parent847c743fa76267f8e58df6882222ea8b2cae9a13 (diff)
downloaddrakx-4604550867df4dd5e2cea4fd5f934a037a6a9e97.tar
drakx-4604550867df4dd5e2cea4fd5f934a037a6a9e97.tar.gz
drakx-4604550867df4dd5e2cea4fd5f934a037a6a9e97.tar.bz2
drakx-4604550867df4dd5e2cea4fd5f934a037a6a9e97.tar.xz
drakx-4604550867df4dd5e2cea4fd5f934a037a6a9e97.zip
add --depth in order to force 16bit colors mode
-rwxr-xr-xtools/drakx-in-chroot3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
index 852792349..0992b49c2 100755
--- a/tools/drakx-in-chroot
+++ b/tools/drakx-in-chroot
@@ -26,6 +26,7 @@ my ($disk_iso_repository, $repository_uri);
--resolution=XXXxYYYY (eg: --resolution=1024x768)\n
--repository=<path> path of packages repository
--text text mode installer
+ --depth=XX set screen color depth
";
(my $repository, my $dir, @ARGV) = @ARGV;
@@ -41,6 +42,8 @@ foreach (@ARGV) {
$wrapper = "gdb -q --args";
} elsif (/--strace/) {
$wrapper = "strace -e file";
+ } elsif (/--depth=(.*)/) {
+ $resolution .= "x$1";
}
}
my ($repository_without_arch, $repository_arch) = basename($repository) eq arch() ? (dirname($repository), '/' . arch()) : ($repository, '');