-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Bootup delay currently broken on master #167
Comments
This looks like a regression. Has it been tested after the changes have been made? I haven't looked deeper into this but |
I don't think this is the reason. |
It seems it wasn't tested.
This is not the issue. |
I just tested the bootup delay in openwisp-config based on 8b85ca5 on OpenWrt 19.07 and it works fine. So the issue must have appeared through changes after that. I'm going to test a more recent version as well. |
I don't know what I'm missing, but it's working fine here also with a quite recent version: d65be8c on OpenWrt 21.02. The RANDOM function is also working as expected if called from a shell:
|
We enable Ash random support by setting |
This explains it, thanks. We could use awk, there's a few examples on stackoverflow, will the seed be good enough? |
This works on bash to calculate a kind of random delay value:
I will try it with ash/busybox tomorrow. |
You can't do float math in ash and
|
@nemesisdesign This works fine. We can use this instead of RANDOM |
A solution is almost ready in #171. |
Fixes #167 Co-authored-by: Federico Capoano <f.capoano@openwisp.io>
See my comment here: b150e65#r69603100
I tried also using the syntax of the previous version but it's not working.
@okraits @devkapilbansal FYI.
Found out thanks to this report #166.
The text was updated successfully, but these errors were encountered: