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

cukinia_netif_is_up fails when it shouldn't #76

Open
ghost opened this issue May 15, 2024 · 0 comments
Open

cukinia_netif_is_up fails when it shouldn't #76

ghost opened this issue May 15, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented May 15, 2024

From the cukinia code:

_cukinia_netif_is_up() {
	local interface="$1"

	_cukinia_prepare "Checking if interface \"$interface\" is ${__not:+NOT }up"
	ip -o link show "$interface" up | grep -q "state UP" 2>&1
}

On my device, there is UP but no state UP:

root@my-yocto-beagleboneblack:~# ip -o link show eth0 up
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000\    link/ether 78:a5:04:c1:16:d0 brd ff:ff:ff:ff:ff:ff
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

0 participants