#!/bin/bash # video - video configuration plugin for postplug # Copyright (c) 2008 by Silvan Calarco # 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