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

[Bug]: linux_connection_share crashes but should continue #352

Open
1 task done
Tech0ne opened this issue Feb 25, 2025 · 0 comments
Open
1 task done

[Bug]: linux_connection_share crashes but should continue #352

Tech0ne opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Tech0ne
Copy link

Tech0ne commented Feb 25, 2025

Contact Details

No response

What happened?

I'm running Ubuntu 22.04
When running sudo ./linux_connection_share.sh {USB IFACE} {NETWORK IFACE}, I usually get the following output:

Error: ipv4: Address already assigned.

Turns out the line

ip addr add "$USB_IFACE_IP/24" dev "$USB_IFACE"

Is the problem.

Due to the fact that the IP is already assigned, the entire script fails.

But, if we were to change it to something like

ip addr add "$USB_IFACE_IP/24" dev "$USB_IFACE" || echo "Continueing..."

that command would not do anything, but the rest would work flawlessly.

This is a one line change and works quite well IMHO

Version

2.9.5.2

3rd Party Hardware

No

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Tech0ne Tech0ne added the bug Something isn't working label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants