Logging (and other things) stop

Discussion in 'HyperWRT Firmware' started by Richthek, Dec 29, 2004.

  1. Richthek

    Richthek Network Guru Member

    I upgraded to HyperWRT on my WRT54G in November. To use Wallwatcher logging I am using the following scripts
    sleep 2
    /sbin/syslogd -R
    echo "#!/bin/sh" > /tmp/loggit.sh
    echo "while true" >> /tmp/loggit.sh
    echo "/usr/bin/killall -9 klogd" >> /tmp/loggit.sh
    echo "sleep 1" >> /tmp/loggit.sh
    echo "/sbin/klogd" >> /tmp/loggit.sh
    echo "sleep 960" >> /tmp/loggit.sh
    echo "done" >> /tmp/loggit.sh
    chmod 700 /tmp/loggit.sh
    /tmp/loggit.sh &

    /usr/sbin/iptables -R INPUT 7 -j logdrop
    /usr/sbin/iptables -R INPUT 1 -j logdrop -m state --state INVALID

    From the first, I noticed that if I stopped Wallwatcher in any way, to restart it I had to re-boot the router [soft or hard] Then just recently, the router loggong stops for no reason and the only way to restart it is to to a reset [and put all the scripts back in, of course]. I watched the LED's & after they all flash in self test, the red Diag light keeps on flashing for a while [it eventually goes off]. I checked Linksys support and they said that it is faulty/incorrectly loaded firmware - re-flash (I wasn't about to say I wasn't using their firmware). I also noticed that for the past couple months [using Linksys firmware, connections between PCs have been just dropping [4 wired, 1 wireless] although connection to the internet is OK Is this something in HyperWRT or is my router just dying?
  2. Avenger20

    Avenger20 Network Guru Member

    The logging in the Linksys firmware (busybox 0.60) just isn't perfect, and can fill up memory after some time, which can cause the logging to stop (and the router to crash) :?

    Will see if I can fix this, I'm going to try some patches from busybox 0.60.5.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice