Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v247-stable
/
.
/
src
/
basic
/
generate-arphrd-list.sh
blob: 93cef47aa15c4cf6c85e420b77f0e5d8fb6c7de3 [
file
] [
log
] [
blame
] [
raw
]
#!/bin/sh
set
-
eu
$1
-
dM
-
include linux
/
if_arp
.
h
-
include
"$2"
-
</
dev
/
null
|
\
awk
'/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }'
|
\
sed
-
e
's/ARPHRD_//'