Skip to content
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

Missing dependency check for iw #2

Open
mryel00 opened this issue Nov 5, 2024 · 0 comments
Open

Missing dependency check for iw #2

mryel00 opened this issue Nov 5, 2024 · 0 comments

Comments

@mryel00
Copy link

mryel00 commented Nov 5, 2024

First of all, thank you for the script, this made the setup pretty easy.
I was confused when I run the nm script and no interface was shown to select. After looking at the code, it seems like you are using iw to filter the interfaces at /sys/class/net/ to only show wireless ones:

for iface in $(ls /sys/class/net/); do
if iw dev "$iface" info &>/dev/null; then
interfaces+=("$iface")
fi
done

On NixOS I obviously didn't have it installed by default, therefore it didn't show me any interface.
I recommend to add check_dependency "iw" to the dependency checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant