fff-hoods: prevents the second start of the script over micrond from being too early.

Submitted by Robert Langhammer on April 16, 2019, 10:32 a.m.

Details

Message ID 20190416103240.21289-1-rlanghammer@web.de
State Superseded
Headers show

Commit Message

Robert Langhammer April 16, 2019, 10:32 a.m.
A side effect is the independence of /tmp/started.

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
---
 src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.20.1

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods b/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods
index 997e4b7..0d7e26d 100644
--- a/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods
+++ b/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods
@@ -1 +1 @@ 
-3-59/5 * * * * /bin/sleep $(/usr/bin/random 1 15); [ -f /tmp/started ] && /usr/sbin/configurehood
+3-59/5 * * * * /bin/sleep $(/usr/bin/random 1 15); [ $(cut -f1 -d . /proc/uptime) -gt 300 ] && /usr/sbin/configurehood