Compare commits
No commits in common. "55752bf6678f160d852d399fd629057535871b79" and "f70b2677d1db660573505aec6a026fac3a149470" have entirely different histories.
55752bf667
...
f70b2677d1
@ -3,7 +3,6 @@
|
||||
set -x
|
||||
fifo=""
|
||||
|
||||
source ./log_helpers.sh
|
||||
source ./git_helpers.sh
|
||||
source ./opkg_helpers.sh
|
||||
source ./update_helpers.sh
|
||||
|
@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
# set -x
|
||||
|
||||
log() {
|
||||
local log_file=/var/log/update_controller.log
|
||||
if [ -f "$log_file" ]; then
|
||||
touch $log_file
|
||||
fi
|
||||
if [ $(wc -l < $log_file) > 100000 ]; then
|
||||
# remove first line
|
||||
sed -e 1d -i $log_file
|
||||
fi
|
||||
message="$(date +'%D_%T'): $*"
|
||||
printf "$message\n"
|
||||
printf "$message\n" >> $log_file
|
||||
}
|
||||
# log "test message1" "test message2"
|
Loading…
x
Reference in New Issue
Block a user