diff options
| author | Kai Hendry <hendry@iki.fi> | 2009-01-30 00:07:27 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:03 +0100 |
| commit | 1051d32840cb0680ca88c52edd37bc768ceed4e3 (patch) | |
| tree | d245093cc963c6a1cdefa9cf1f5d18e993d06868 /scripts | |
| parent | 493a81acd858ef7e460a26a89cb660a44866cc46 (diff) | |
| download | live-boot-1051d32840cb0680ca88c52edd37bc768ceed4e3.tar.gz live-boot-1051d32840cb0680ca88c52edd37bc768ceed4e3.zip | |
Adding basic xrandr support for lenny to enforce a particular resolution through bootparameter.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-bottom/21xvidemode | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/live-bottom/21xvidemode b/scripts/live-bottom/21xvidemode index ead3a6c..489fc5c 100755 --- a/scripts/live-bottom/21xvidemode +++ b/scripts/live-bottom/21xvidemode @@ -30,6 +30,8 @@ then exit 0 fi +[ -n "$XVIDEOMODE" ] || exit + . /scripts/live-functions log_begin_msg "Configuring X video modes" @@ -38,8 +40,15 @@ log_begin_msg "Configuring X video modes" . /live.vars -if [ -n "$XVIDEOMODE" ] +if [ $(cat /root/etc/debian_version | sed 's|\..*$||') -ge 4 ] then + # lenny or newer + if [ -x "$(which xrandr 2>/dev/null)" ] + then + echo "xrandr -s ${XVIDEOMODE} || /bin/true" >> /root/etc/X11/Xsession.d/21xvidemode + fi +else + # etch mount -o bind /sys /root/sys mount -o bind /proc /root/proc mount -o bind /dev /root/dev |
