it seems that after reboot it no longer displays all the logs, continue to display the information correctly and with the new script!
thanks for all the help! _________________ Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt
Well the bootlog is lost because you restart syslogd and redirect the output to another file.
Sometimes the bootlog is quite useful.
You can try the following code which should also save the bootlog.
Code:
if [ ! -L /tmp/var/log/messages ]; then cat /tmp/var/log/messages >> /jffs/messages; fi
killall syslogd
syslogd -Z -L -s 8192 -O /jffs/messages
ln -sf /jffs/messages /tmp/var/log/messages
it may endanger the operation of my router,where to save this code ? _________________ Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt
can I replace 8192 with 200? _________________ Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt
I deleted the first file with the system logs manually via winscp, there is a problem that I deleted it? _________________ Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt
I know I am late for the party here. I added a
mkdir -p /jffs/syslog/
to ensure the folder exists. _________________ Linksys: Several WRTxx00AC variations | Netgear: 4x WNDR4500v2, 7x WNDR4300, R6400v1 | Asus: 2x RT-AC66U | Gl.inet: 3x GL-AR150