Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions emhttp/plugins/dynamix/scripts/rsyslog_config
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fi

# mirror syslog to boot drive
if [[ -n $syslog_flash ]]; then
mkdir -p /boot/logs
if ! grep -q '^\$template flash,' $ETC; then
sed -ri '/^#\$UDPServerRun [0-9]+.*$/a$template flash,"/boot/logs/syslog"' $ETC
fi
Expand Down
2 changes: 1 addition & 1 deletion etc/rc.d/rc.6
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ if [[ ! -f /boot/logs/syslog && -z $MIRROR && -z $COPY ]]; then
SIZE=$(($(/bin/stat -c%s /var/log/syslog)*2))
if [[ $AVAIL -ge $SIZE ]]; then
log "Saving syslog to boot drive"
/bin/cp -f /var/log/syslog /boot/logs/syslog
/bin/mkdir -p /boot/logs && /bin/cp -f /var/log/syslog /boot/logs/syslog
fi
fi

Expand Down
Loading