Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
firmware
FFS Gluon Packages
Commits
cab1844d
Commit
cab1844d
authored
Sep 12, 2017
by
FFS-Roland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing control file with timestamp if watchdog is disabled.
parent
361a354d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ffs-watchdog/files/usr/sbin/ffs-watchdog
ffs-watchdog/files/usr/sbin/ffs-watchdog
+4
-1
No files found.
ffs-watchdog/files/usr/sbin/ffs-watchdog
View file @
cab1844d
...
...
@@ -5,9 +5,9 @@ if [ $(ps | grep -c "$ME") -gt 4 ]; then
exit
1
fi
FFS
=
/tmp/.gw.ffs
if
[
"
$(
uci get gluon-setup-mode.@setup_mode[0].enabled
)
"
=
"0"
]
&&
[
"
$(
uci get system.@system[0].enable_watchdog
)
"
!=
"0"
]
;
then
FFS
=
/tmp/.gw.ffs
NOW
=
$(
date
+%s
)
if
[
-n
"
$(
batctl gwl |
grep
'=>'
)
"
]
;
then
echo
$NOW
>
$FFS
...
...
@@ -25,4 +25,7 @@ if [ "$(uci get gluon-setup-mode.@setup_mode[0].enabled)" = "0" ] &&
echo
$NOW
>
$FFS
fi
fi
else
rm
$FFS
logger
-t
$ME
"disabled"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment