1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-07 04:20:39 -07:00
moth/packages/ctfbase/service/ctfd/run

13 lines
230 B
Text
Raw Normal View History

2011-02-03 07:31:42 -07:00
#! /bin/sh -e
exec 2>&1
2011-02-07 13:10:02 -07:00
# Set up networking for all CTF ip
2011-02-03 07:31:42 -07:00
ip link set eth0 up
if ! ip route | grep -q default; then
ip route add default via 10.0.0.1 || exit 1
fi
install -o root -m 0755 -d /var/lib/ctf/tokens
2011-02-07 13:10:02 -07:00
exec ./ctfd