[SCM] Debian Live application startscripts branch, master, updated. bd02c8d9527490047106fe59eec4ce12c540830c
Daniel Baumann
daniel at debian.org
Sat Nov 29 23:02:45 UTC 2008
The following commit has been merged in the master branch:
commit bd02c8d9527490047106fe59eec4ce12c540830c
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Sep 3 20:01:23 2008 +0200
Splitting out resolution detection.
diff --git a/functions/resolution.sh b/functions/resolution.sh
new file mode 100755
index 0000000..097ec2c
--- /dev/null
+++ b/functions/resolution.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+RESOLUTION="$(xrandr)"
+
+read x x x x x x x RESOLUTION_X x RESOLUTION_Y x << EOF
+${RESOLUTION}
+EOF
+
+RESOLUTION_Y="${RESOLUTION_Y%,}"
diff --git a/functions/start_tools.sh b/functions/start_tools.sh
index 34a3409..6ccd47f 100755
--- a/functions/start_tools.sh
+++ b/functions/start_tools.sh
@@ -1,9 +1,3 @@
-RES=$(xrandr)
-read a a a a a a a RESX x RESY a << EOF
-$RES
-EOF
-RESY=${RESY%,}
-
replace() {
sed -i -e "s/$1/$2/" $3
}
--
Debian Live application startscripts
More information about the debian-live-changes
mailing list