-
Notifications
You must be signed in to change notification settings - Fork 44
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
Error in line 54 #59
Comments
please review the commit above. |
Okay so far, but I've seen two other potential problems. Sorry, should have seen it earlier... |
line 24 of what file? this is used a few times, can you give me the file so that I can follow along too. |
mmdvmhost.service |
${ipVar} is the same as $ipVar, nothing wrong with that bit. I'll double check the output for hostname with and without network. |
File mmdvmhost.service:
line 56 is
why the cut? Empty is empty for line 54
or actually it is not because So the comparison is always true because either "" != " " (empty string is not equal one space character) |
I checked it, In my linux/pi-star version |
I checked on my pi-star version the
It works for both cases, local AP mode and Wifi connected to AP. I haven't checked the timeout value of the mmdvmhost systemd service config which should be way higher than the automatic AP-mode switch timeout. There might be now conflict potential here because the until loop was always left. |
This is a solution to an OLD problem, and the concept of "wait for an IP" might not matter so much any more. |
You're right, it's not urgent and putting everything in systemd's hands is a good idea. Very flexible that piece. Nevertheless I tested another non-standard case with the changes above made to mmdvmhost.service script (cut removed, empty string comparison):
Another reason to change the systemd config... |
File mmdvmhost.service
The shell variable
ipvar
should be protected with double quotes.
In my case this variable was empty and the comparison was syntactically wrong and the script failed.
The text was updated successfully, but these errors were encountered: