mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-09 05:20:54 -07:00
12 lines
230 B
Bash
Executable file
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
|