#!/bin/bash

chkconfig tftp on
if [ -e "/tftpboot" ] ; then
     chown -R root:root /tftpboot
     chmod -R 0744 /tftpboot
else
     mkdir -m 0744 /tftpboot && chown root:root /tftpboot
fi
