12 lines
354 B
Bash
12 lines
354 B
Bash
#!/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
|