diff options
Diffstat (limited to 'os-plugins')
| -rw-r--r-- | os-plugins/plugins/xserver/XX_xserver.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh index 2638e7d5..4a8d0410 100644 --- a/os-plugins/plugins/xserver/XX_xserver.sh +++ b/os-plugins/plugins/xserver/XX_xserver.sh @@ -26,7 +26,10 @@ fi xfc="/mnt/etc/X11/xorg.conf" -if [ -e /initramfs/plugin-conf/xserver.conf ]; then +# check for the existance of plugin configuration and non-existance of an +# admin provided config file in ConfTGZ +if [ -e /initramfs/plugin-conf/xserver.conf -a \ + ! -f /rootfs/etc/X11/xorg.conf ]; then . /initramfs/plugin-conf/xserver.conf # keyboard setup localization "${country}" @@ -39,10 +42,9 @@ if [ -e /initramfs/plugin-conf/xserver.conf ]; then # proprietary ATI/NVidia modules listed a different way with hwinfo [ -z "$xmodule" ] || error "${hcfg_hwsetup}" nonfatal - -###################################################################### -# begin proprietary drivers section -###################################################################### + ###################################################################### + # begin proprietary drivers section + ###################################################################### set -x if [ $(grep -i -m 1 'Driver Activation Cmd: "modprobe fglrx"' \ @@ -86,9 +88,9 @@ ${PLUGIN_ROOTFS}/usr/X11R6/lib/modules/\," ${LINK_PATH}libGL.so.1.2 fi set +x -###################################################################### -# end proprietary drivers section -###################################################################### + ###################################################################### + # end proprietary drivers section + ###################################################################### echo -e "# $xfc\n# autogenerated X hardware configuration by the xserver \ |
