Skip to content

Use /sbin/ip from iproute2 instead of ifconfig under Linux.#25

Open
ilyaevseev wants to merge 2 commits intofriedrich:masterfrom
ilyaevseev:master
Open

Use /sbin/ip from iproute2 instead of ifconfig under Linux.#25
ilyaevseev wants to merge 2 commits intofriedrich:masterfrom
ilyaevseev:master

Conversation

@ilyaevseev
Copy link
Copy Markdown

No description provided.

@kovacs-andras
Copy link
Copy Markdown

What about /usr/sbin/ip instead of /sbin/ip? Ofc. these two are the same file (hard links) but https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/

@ilyaevseev
Copy link
Copy Markdown
Author

What about /usr/sbin/ip instead of /sbin/ip?

Done.

@randolf
Copy link
Copy Markdown

randolf commented Aug 10, 2024

This doesn't drop support for ifconfig though, I hope. I dislike the "ip" command and use ifconfig extensively on all of my Debian Linux servers, and all of the /etc/network/interfaces magic that comes with it.

@friedrich
Copy link
Copy Markdown
Owner

Hi @ilyaevseev - I'm considering merging this, but I'd prefer using just ip instead of /usr/sbin/ip to avoid path issues across distros. Could you update that? Also, the OLD_LINUX fallback is unused - nothing in the build system defines it, so it's dead code. I'd drop it and keep things simple: ip on Linux, ifconfig everywhere else.

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

Successfully merging this pull request may close these issues.

4 participants