mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
crashlog: retry forever contacting server.
The wan might not be connected so try more than once.
This commit is contained in:
parent
4ee2dcfb38
commit
1f7ee24d27
1 changed files with 11 additions and 2 deletions
|
|
@ -10,8 +10,17 @@ send_log()
|
|||
bid=$(db get hw.board.boardId)
|
||||
sw=$(db get hw.board.iopVersion)
|
||||
server=$(/sbin/uci get system.cashlog.server)
|
||||
|
||||
scp -S /usr/sbin/logssh /proc/last_kmsg log@${server}:log/${bid}_${hwv}_${hw}_${sw}_${nr}
|
||||
|
||||
while true
|
||||
do
|
||||
scp -S /usr/sbin/logssh /proc/last_kmsg log@${server}:log/${bid}_${hwv}_${hw}_${sw}_${nr}
|
||||
if [ $? == 0 ]
|
||||
then
|
||||
break;
|
||||
fi
|
||||
# wait for another minute then try again
|
||||
sleep 60
|
||||
done
|
||||
}
|
||||
|
||||
boot()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue