1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-09 05:20:54 -07:00
moth/packages/playfair/service/playfair/run
2011-11-03 22:22:07 -06:00

9 lines
141 B
Bash
Executable file

#! /bin/sh -e
exec 2>&1
IP=$(cat ip.txt)
ip addr add $IP dev eth0 || true
exec tcpsvd -u nobody ${IP%/*} 1013 /opt/playfair/bin/playfair