#!/bin/sh tz=$(date "+%Z") if (( $EUID != 0 )); then echo "Please run as root" exit elif [[ "$tz" == "CDT" ]]; then ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime echo "Changed to Eastern Daylight Time timezone" elif [[ "$tz" == "EDT" ]]; then ln -sf /usr/share/zoneinfo/US/Central /etc/localtime echo "Changed to Central timezone" fi # Update system clock echo "Updating system clock" ntpd -gq >/dev/null 2>&1