Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openbmc
/
92b42cb35d755f8cfe6c17d403711a536e0f0721
/
.
/
meta-ibm
/
recipes-phosphor
/
network
/
network
/
ncsi-netlink-ifindex
blob: 9b9b748bfd816d19c18b514be01b19de991c38cf [
file
] [
log
] [
blame
]
#!/bin/sh
IFPATH
=
"/sys/class/net/$1/ifindex"
if
[
!
-
f
"${IFPATH}"
]
then
echo
Error
:
"${IFPATH}"
does not exist
1
>&
2
exit
2
fi
shift
ncsi
-
netlink
-
x
"$(cat "
$
{
IFPATH
}
")"
"$@"