0jf5 Posted December 24, 2013 Share Posted December 24, 2013 (edited) throw this in /etc/rc.local, or make an init script, and/or throw a wrapper around it to make it persistant. Syslog data is currently only saved in memory which is limited to 0-XMB depending on what you're doing. This will throw everything into an actual log file and retain data after reboot. Code is probbaly ugly but made sense at 2am and seems to work: #!/bin/sh #Change whatever paths and filenames you want, feel free to modify as needed sdcard="/sd" log="$sdcard"/syslog/syslog if [ ! -d "$sdcard" ]; then echo "Please mount your sd card and set the \"sdcard\" variable" elif [ ! -d "$sdcard"/syslog ]; then mkdir "$sdcard"/syslog if [ -e "$log" ]; then /sbin/logread -f >> "$log" else /sbin/logread > "$log" /sbin/logread -f >> "$log" fi else if [ -e "$log" ]; then /sbin/logread -f >> "$log" else /sbin/logread > "$log" /sbin/logread -f >> "$log" fi fi Edited December 24, 2013 by 0jf5 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.