• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/netatalk-3.0.5/test/afpd/
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