#!/bin/sh

if [ -f /etc/config/network ]; then
    configfile='/etc/config/network'
    configfile_secured='/etc/config/network'
    # check if the file contains something we don't want 
    if egrep -q -v '^#|^[^ ]*=[^;]*' "$configfile"; then
        # filter the original to a new file 
        egrep '^#|^[^ ]*=[^;&]*'  "$configfile" > "$configfile_secured"
        configfile="$configfile_secured"
    fi
    source "$configfile"
fi

case "$1" in
  start)
	if [ x"$NTP" != x"" ]; then
            /sbin/ntpclient -slh $NTP -i 3600 >/dev/null 2>&1 &
        fi;
	;;
esac

exit 0
