#!/bin/sh

if [ "$1" = "test" ]; then
  echo "Try to fix X server"
  exit 0
fi

whiptail --infobox "The X server reconfiguration is now running.  Your screen may flicker during hardware autodetection." 8 60

sleep 3
dpkg-reconfigure -phigh xserver-xorg
sleep 3

exit 0
