summaryrefslogblamecommitdiff
path: root/net-mgmt/horde-nic/files/pkg-install.in
blob: d75112eb3810f75eb94635a1343795bfa32b7b41 (plain) (tree)























                                                                              
#!/bin/sh
#
# $FreeBSD$
#
#

PATH=/usr/sbin:/usr/bin:/bin ; export PATH

case $2 in
    PRE-INSTALL)
    ;;

    POST-INSTALL)
        if [ -z "${PACKAGE_BUILDING}" ]; then
            # Copy over sample config files unless they already exist

            for cf in `ls %%NICDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
                if [ ! -f $cf ]; then
                    cp -p $cf.dist $cf
                fi
            done
        fi
    ;;
esac