#!/bin/bash
# VERSION=1
# CHANGES=initial vers
# on startup, remove ntphost
# udhcp default.script will set ntp to gui-ntphost or dhcp provided later (S40)

NTP_DEFAULT="pool.ntp.org"

function clear_ntphost {
	if [ -z "$(/usr/fallback/beroconf get root gui-ntphost | grep -v failed)" ]; then
		/usr/fallback/beroconf set root ntphost ${NTP_DEFAULT}
	fi
}

case ${1} in
	start)
		clear_ntphost
		;;
	stop)
		;;
esac
