#!/bin/sh -x
##
## @package   tftp-update-manager
## @file      tftp-update-server-start.sh
## @brief     Script file for extracting database file from the given file.
##
## @author    Karthick Rajkumar
## @copyright Copyright 2022 Hanover Displays Limited.
## @license   This program is the confidential and proprietary product of
##            Hanover Displays Limited. Any unauthorised use, reproduction or
##            transfer of this program is strictly prohibited. (Subject to
##            limited distribution and restricted disclosure only.) All
##            rights reserved.
##

TFTP_SERVER_ROOT_DIRECTORY=/mnt/hos-data/tftp-home

mkdir -p ${TFTP_SERVER_ROOT_DIRECTORY}
chmod 777 ${TFTP_SERVER_ROOT_DIRECTORY}

rm -rf ${TFTP_SERVER_ROOT_DIRECTORY}/*

/etc/init.d/tftpd-hpa start

exit 0
