postplug/oldscripts/25video

12 lines
354 B
Plaintext
Raw Normal View History

2011-04-27 19:57:03 +02:00
#!/bin/bash
# video - video configuration plugin for postplug
# Copyright (c) 2008 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
XORG_MONITOR_FILE=/var/lib/postplug/xorg.conf.monitor
tmpfile=`mktemp -q`
/usr/sbin/get-edid 2>/dev/null | /usr/sbin/parse-edid 2>/dev/null >$tmpfile
[ $? -eq 0 ] && cp $tmpfile $XORG_MONITOR_FILE
rm -f $tmpfile
exit 0