8 # (c) Copyright (C) 2012 by Darren Reed.
13 # Source control script environment
16 UTILS="/usr/lbin/sw/control_utils"
17 if [[ ! -f $UTILS ]] ; then
18 echo "ERROR: Cannot find $UTILS"
24 CONTRIBDIR=/usr/contrib/ipf
28 # Create directories so that installation can take place
31 if [[ ! -d ${ETCDIR} ]]; then
32 mkdir -m 755 -p ${ETCDIR}
35 for i in ipf.conf ipnat.conf; do
37 chmod 444 ${ETCDIR}/$i
40 if [[ ! -d ${CONTRIBDIR} ]]; then
41 mkdir -m 755 -p ${CONTRIBDIR}
44 for i in bin man include examples; do
45 if [[ ! -d ${CONTRIBDIR}/$i ]]; then
46 mkdir -m 755 -p ${CONTRIBDIR}/$i