#!/bin/sh

#This is a script to remove irrelevant error messages from the log just before it is displayed. This is not the script that is run when the clear log button is pressed.

sed '/INVALID dictionary 0/,/INVALID dictionary 0/d' /tmp/openbackup.log | grep -vx ')' | grep -v -e Pre-iOS -e is_IS -e CARRIER -e setuid -e Keyboard > /tmp/openbackup.tmp; mv /tmp/openbackup.tmp /tmp/openbackup.log; chown mobile /tmp/openbackup.log
