1#!/bin/sh
2if [ ! -d /tmp/AFPtestvolume ] ; then
3    mkdir -p /tmp/AFPtestvolume
4    if [ $? -ne 0 ] ; then
5        echo Error creating AFP test volume /tmp/AFPtestvolume
6        exit 1
7    fi
8fi
9
10if [ ! -f test.conf ] ; then
11    echo -n "Creating configuration template ... "
12    cat > test.conf <<EOF
13test -noddp -port 10548
14EOF
15    echo [ok]
16fi
17
18if [ ! -f test.default ] ; then
19    echo -n "Creating volume config template ... "
20    cat > test.default <<EOF
21/tmp/AFPtestvolume "test" ea:none cnidscheme:last
22EOF
23    echo [ok]
24fi
25