1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-08 21:11:06 -07:00
moth/packages/ircd/service/ircd/run
2011-09-23 16:57:26 -06:00

12 lines
230 B
Bash
Executable file

#! /bin/sh
exec 2>&1
IP=$(cat ip.txt)
ip addr add $IP label eth0:ircd dev eth0
ip monitor | grep -q $IP
adduser -S -H -u 65534 nobody
adduser -S -H irc
exec setuidgid irc /opt/ircd/bin/ngircd --config ./ngircd.conf --nodaemon