cmkelley
Very Senior Member
Finally got tired of seeing them; I have little faith Trend Micro or Asus will correct anytime soon. Add the following line to /jffs/scripts/post-mount
Replace /tmp/syslog.log with /opt/var/log/messages (or wherever you're redirecting syslog to) if you're using syslog-ng. Runs every 10 minutes, adjust to your liking.
File: /jffs/scripts/rm_dcd_crash (make sure you 'chmod +x rm_dcd_crash' after you create it)
Thought: maybe should have just put the sed command in the cru line instead of calling a script? I dunno, works this way and I know where to look if I want to duplicate it for something else.
Code:
cru a dcd_crash "*/10 * * * * /jffs/scripts/rm_dcd_crash /tmp/syslog.log" #remove dcd crash lines from syslog
File: /jffs/scripts/rm_dcd_crash (make sure you 'chmod +x rm_dcd_crash' after you create it)
Code:
#!/bin/sh
# remove dcd crash lines from system log
/bin/sed -i '/kernel: dcd/,/kernel: x1 /d' $1
Last edited: