3 # to update ip of hackdaworld.dyndns.org in unrealircd.conf
5 CONFIGDIR="/etc/opt/unrealircd"
6 BINDIR="/opt/unrealircd"
10 NEWIP="`host hackdaworld.dyndns.org | awk '{ print $4 }'`"
12 # HDWTAG dirty ... but easy :)
13 cat $CONFIGDIR/unrealircd.conf | \
14 sed "s/.* HDWTAG .*/hostname $NEWIP \/* HDWTAG *\//" > $CONFDIR/temp
15 mv $CONFDIR/temp $CONFIGDIR/unrealircd.conf
16 $BINDIR/$BINARY -rehash