Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F118306800
ethernet-interface
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
255 B
Referenced Files
None
Subscribers
None
ethernet-interface
View Options
#!/bin/sh
if
!
[[
"
$1
"
=
~
^
(
lan
|
eth
|
eno
|
ens
|
enp
|
enx
)[
0
-9
]
+$
]]
;
then
echo
"Error:
$1
is not an ethernet interface"
exit
1
fi
if
!
[
-d
"/sys/class/net/
$1
"
]
;
then
echo
"Error:
$1
interface does not exist in the system"
exit
1
fi
exit
0
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Oct 17, 12:20 AM (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4377544
Default Alt Text
ethernet-interface (255 B)
Attached To
Mode
rVYOSONEX vyos-1x
Attached
Detach File
Event Timeline
Log In to Comment