projects
/
openwrt
/
staging
/
wigyori.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
base-files: drop fwtool_pre_upgrade
[openwrt/staging/wigyori.git]
/
package
/
utils
/
ct-bugcheck
/
src
/
bugchecker.sh
1
#!/bin/sh
2
3
# Periodically call bugcheck.sh script
4
5
CHECKER
=
bugcheck.sh
6
SLEEPFOR
=
60
7
8
DO_BUGCHECK
=
0
9
10
# So, to enable this, you create an /etc/config/bugcheck file
11
# with contents like:
12
# DO_BUGCHECK=1
13
# export DO_BUGCHECK
14
15
if
[
-f
/
etc
/
config
/
bugcheck
]
16
then
17
.
/
etc
/
config
/
bugcheck
18
fi
19
20
if
[
$DO_BUGCHECK
==
0
]
21
then
22
exit
0
23
fi
24
25
while
true
26
do
27
$CHECKER
28
sleep
$SLEEPFOR
29
done