2010-09-23 18:23:00 -06:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
exec 2>&1
|
2010-10-22 09:36:28 -06:00
|
|
|
|
2011-02-07 13:10:02 -07:00
|
|
|
ip addr add 10.0.0.2/24 label eth0:mcp dev eth0
|
2011-02-03 07:31:42 -07:00
|
|
|
|
2010-10-25 17:17:10 -06:00
|
|
|
DB=/var/lib/ctf/tokens.db
|
|
|
|
|
2010-10-26 16:43:51 -06:00
|
|
|
if [ ! -f $DB ]; then
|
2010-10-25 17:17:10 -06:00
|
|
|
# Append any package-provided tokens
|
|
|
|
cat /opt/*/tokens >$DB 2>/dev/null
|
|
|
|
chown ctf $DB
|
|
|
|
fi
|
|
|
|
|
2010-10-22 09:36:28 -06:00
|
|
|
for fn in /var/lib/ctf/tokens.db /var/lib/ctf/claim.db; do
|
|
|
|
touch $fn
|
|
|
|
chown ctf $fn
|
|
|
|
done
|
|
|
|
|
2010-09-23 18:23:00 -06:00
|
|
|
exec tcpsvd -u ctf 0 1 /opt/mcp/bin/in.tokend
|