1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-07 12:30:47 -07:00
moth/packages/ctfbase/service/ctfd/run
2011-09-20 09:21:11 -06:00

17 lines
313 B
Bash
Executable file

#! /bin/sh -e
exec 2>&1
# Make user accounts
if ! [ -r /etc/passwd ]; then
cat passwd >/etc/passwd
fi
# Set up networking for all CTF ip
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
exec ./ctfd