We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by hongkongkiwi April 28, 2022 I have a need to read signal status from a bash script. e.g I have lte_connected and wifi_connected
is there a similar command to initctl -a status "service" but for conditions to know if they are set?
Right now I'm using:
initctl -b -p cond dump | awk '{ print $4 }' | grep -q '^<usr/wifi_connected>'
This method is a bit awkward and involves two additional tools.
The text was updated successfully, but these errors were encountered:
initctl: add cond get foo, supports -v option
9bce8f9
Fix issue #255 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
root@zero:~# initctl cond get foo root@zero:~# initctl -v cond get foo off root@zero:~# initctl -v cond set foo root@zero:~# initctl -v cond get foo on root@zero:~# echo $? 0 root@zero:~# initctl -v cond clr foo root@zero:~# initctl -v cond get foo off root@zero:~# echo $? 1
Sorry, something went wrong.
troglobit
No branches or pull requests
Discussed in #251
Originally posted by hongkongkiwi April 28, 2022
I have a need to read signal status from a bash script. e.g I have lte_connected and wifi_connected
is there a similar command to initctl -a status "service" but for conditions to know if they are set?
Right now I'm using:
This method is a bit awkward and involves two additional tools.
The text was updated successfully, but these errors were encountered: