commit cc8253d6dd62cd6ba4f04506711edd0705dc5532 parent 6593509b974a05f90ef7d64cb60a89954ba6444b Author: rubo77 <github@r.z11.de> Date: Wed, 3 Aug 2016 13:56:26 +0200 cron: Activate job per default Depends on the micron cronjob from gluon. Diffstat:
| M | README | | | 11 | ++++++----- |
| M | roamguide/Makefile | | | 2 | +- |
| A | roamguide/files/usr/lib/micron.d/roamguide | | | 2 | ++ |
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/README b/README @@ -31,18 +31,19 @@ to activate it you need to set enabled to '1'. option bantime_factor '2375' # on the second one for 2775ms, # and in the final 10000ms option forget_time '600' # Forget about a client after 10s - option enabled '0' # set to '1' to ensable this profile + option enabled '0' # set to '1' to enable this profile This module creates a cronjob calling /usr/bin/roamguide once a minute. If you want to make roamguide more reactive (but also stress your device) you can add some more cron jobs with sleep timers in /usr/lib/micron.d/root: - * * * * * /usr/bin/roamguide + * * * * * sleep 20 & /usr/bin/roamguide + * * * * * sleep 40 & /usr/bin/roamguide -If you want to execute this with one shell call you can use: +If you want to disable this with one shell call you can use: - ssh <router ip> 'uci set roamguide.@roamguide[0].enabled="1"; uci commit roamguide; grep -q /usr/bin/roamguide /etc/crontabs/root || echo "* * * * * /usr/bin/roamguide" >> /etc/crontabs/root; echo done' + ssh <router ip> 'uci set roamguide.@roamguide[0].enabled="0"; uci commit roamguide && echo done' -If you want to make roamguide more reactive (but also stress your device) you can add some more cron jobs with sleep timers: +If you want to make roamguide more reactive: ssh <router> 'grep -q "sleep 20" /usr/lib/micron.d/root || echo "* * * * * sleep 20 & /usr/bin/roamguide" >> /usr/lib/micron.d/root' ssh <router> 'grep -q "sleep 40" /usr/lib/micron.d/root || echo "* * * * * sleep 40 & /usr/bin/roamguide" >> /usr/lib/micron.d/root' diff --git a/roamguide/Makefile b/roamguide/Makefile @@ -11,7 +11,7 @@ include $(GLUONDIR)/include/package.mk define Package/roamguide SECTION:=net CATEGORY:=Network - DEPENDS:= + DEPENDS:=+micrond TITLE:=Helps your client to search for a better AP and have a nice roam experience. endef diff --git a/roamguide/files/usr/lib/micron.d/roamguide b/roamguide/files/usr/lib/micron.d/roamguide @@ -0,0 +1 @@ +* * * * * /usr/bin/roamguide +\ No newline at end of file