diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-04 19:48:45 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-05 20:12:30 -0500 |
commit | 6ad4e23eade56a6a790da1038b14f83193d14047 (patch) | |
tree | 348f840cedcaff0f72c5cae7e4f427b69d575430 /system/xf86-video-qxl/doinst.sh | |
parent | c528a862f4edc24fc05785b9e6802cc1719c426d (diff) | |
download | slackbuilds-6ad4e23eade56a6a790da1038b14f83193d14047.tar.gz |
system/xf86-video-qxl: Updated for version 20120823_a261bef
Also added an XSPICE= option
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/xf86-video-qxl/doinst.sh')
-rw-r--r-- | system/xf86-video-qxl/doinst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/system/xf86-video-qxl/doinst.sh b/system/xf86-video-qxl/doinst.sh new file mode 100644 index 0000000000..c45f8450b8 --- /dev/null +++ b/system/xf86-video-qxl/doinst.sh @@ -0,0 +1,17 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +if [ -f etc/X11/spiceqxl.xorg.conf.new ]; then + config etc/X11/spiceqxl.xorg.conf.new +fi +config usr/share/X11/xorg.conf.d/05-qxl.conf.new |