Removing etch compatibility.
[live-boot-grml.git] / scripts / live-bottom / 21xvidemode
index 1312530..3fb9190 100755 (executable)
@@ -47,29 +47,9 @@ then
        exit 0
 fi
 
-if [ $(cat /root/etc/debian_version | sed 's|\..*$||') -ge 4 ]
+if [ -x "$(which xrandr 2>/dev/null)" ]
 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
-
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set xserver-xorg/config/monitor/mode-list ${XVIDEOMODE}
-set xserver-xorg/config/display/modes ${XVIDEOMODE}
-EOF
-
-       chroot /root dexconf
-
-       umount /root/sys
-       umount /root/proc
-       umount /root/dev
+       echo "xrandr -s ${XVIDEOMODE} || /bin/true" >> /root/etc/X11/Xsession.d/21xvidemode
 fi
 
 log_end_msg