Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openbmc
/
c9779e697ae9eee0a4e0b264704d8e2dbf2d8610
/
.
/
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
}
")"
"$@"