2011-02-03 07:31:42 -07:00
|
|
|
#! /bin/sh -e
|
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
|
2011-09-20 09:21:11 -06:00
|
|
|
# Make user accounts
|
|
|
|
if ! [ -r /etc/passwd ]; then
|
|
|
|
cat passwd >/etc/passwd
|
|
|
|
fi
|
|
|
|
|
2011-03-14 17:13:25 -06:00
|
|
|
# Set up networking for all CTF ips
|
2011-02-03 07:31:42 -07:00
|
|
|
ip link set eth0 up
|
|
|
|
if ! ip route | grep -q default; then
|
2011-09-21 15:23:09 -06:00
|
|
|
ip route add default via fd82:b410:3441:1661::1 || exit 1
|
2011-02-03 07:31:42 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
install -o root -m 0755 -d /var/lib/ctf/tokens
|
2011-02-07 13:10:02 -07:00
|
|
|
exec ./ctfd
|