#!/bin/sh if [ $(date +%H) -gt 18 ]; then echo "activate Xorg ATI" ln -sf /etc/X11/xorg.conf.ati /etc/X11/xorg.conf else echo "activate Xorg NVIDIA" ln -sf /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf fi exit 0 # chmod +x /etc/init.d/fiXorg.sh # update-rc.d fiXorg.sh defaults 20