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
13[Global]
14afp port = 10548
15
16[test]
17path = /tmp/AFPtestvolume
18cnid scheme = last
19EOF
20    echo [ok]
21fi
22