Miau IRC Bouncer

From DD-WRT Wiki

Revision as of 08:13, 9 February 2006 by 209.66.124.150 (Talk)
Jump to: navigation, search

Suppressing the jffs logging

Under 0.5.3 "hairball", if you want to suppress all the logging and hence save the flash memory from some additional exertion, don't fork to the background at all. Miau author has been kindly agreed to add a miaurc option for us jffs users to turn off logging in the next miau release. In the meanwhile there's an unofficial detour (use at your own risk):

# /jffs/usr/bin/miau -d /jffs/usr/bin -f 1>/dev/null 2>&1 &

Under 0.5.4-p3 - "compatible catnap" and later edit the miaurc file with vi like this:

# statelog = "state": Should miau write state log. When true, log will
#               be written to "$MIAUDIR/log". If set to false, the same stuff
#               is printed on stdout (on terminal).
#
# Default: true
                                                      
statelog = "false"

Then with vi check that the /jffs/etc/config/miau.startup file looks like this:

#!/bin/ash
iptables -I INPUT -s 192.168.1.100 -p tcp --dport 4096 -j ACCEPT
/jffs/usr/bin/miau -d /jffs/usr/bin

Replace the 192.168.1.100 with the client IP address you're ircing from. You can update the catnap with ipkg if you haven't cleared the "hairball" from your WRT:

/jffs/usr/bin # ipkg install http://www.linuxops.net/ipkg/miau_0.5.4_mipsel.ipk
Downloading http://www.linuxops.net/ipkg/miau_0.5.4_mipsel.ipk ...
Connecting to www.linuxops.net[83.143.85.18]:80
miau_0.5.4_mipsel.ip 100% |***********************************************| 29777       00:00 ETA
Done.
Unpacking miau...Done.
Configuring miau...Done.