]> spindle.queued.net Git - xodist/blobdiff - configs/debxo-lxde/hooks
debxo-lxde: package update for squeeze
[xodist] / configs / debxo-lxde / hooks
index 371fc8e2ca25e18cc72f007030f27ddcca3dca04..66bb63a7ffb5d77084e2df36a05ffb1cc2f16d7c 100644 (file)
@@ -72,8 +72,18 @@ EOF
                rm -f ${ROOT_DIR}/${pkg}
        done
 
-       # No longer a need for xorg.conf
-       rm -f ${ROOT_DIR}/etc/X11/xorg.conf
+       # Create an Xorg.conf that overrides the default DPI (x bug workaround).
+       cat >${ROOT_DIR}/etc/X11/xorg.conf<<EOF
+Section "Monitor"
+       Identifier "Monitor0"
+       DisplaySize 200 150
+EndSection
+
+Section "Screen"
+       Identifier "Default Screen"
+       Monitor "Monitor0"
+EndSection
+EOF
 
        # configure nodm
        F=${ROOT_DIR}/etc/default/nodm
@@ -82,6 +92,16 @@ EOF
                sed --in-place "s/NODM_ENABLED=.*$/NODM_ENABLED=true/" ${F}
        fi
 
+       # configure wicd
+       F=${ROOT_DIR}/etc/wicd/manager-settings.conf
+       if [ -f ${F} ]; then
+               sed --in-place "s/wireless_interface =.*$/wireless_interface = wlan0/" ${F}
+               sed --in-place "s/wired_inferface =.*$/wired_interface = eth0/" ${F}
+               # auto-connect to wired
+               sed --in-place "s/prefer_wired =.*$/prefer_wired = True/" ${F}
+               sed --in-place "s/wired_connect_mode =.*$/wired_connect_mode = 0/" ${F}
+       fi
+
 }
 
 cleanup_chroot_hook()