Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6

36 bytes removed, 18:48, 15 July 2017
Replacing eno with eth0
&#35;<br>
&#35; Purpose: Creates system info report<br>
&#35;<br>&#35; USAGE: ./network-info.bash [full pathname to ifcfg-eno* eth0 file]<br>
<br>
if [ $USER != "root" ] # only runs if logged in as root<br>
if [ $# -ne 1 ]<br>
then<br>
&nbsp;echo "You need to provide the full pathname to ifcfg-eno eth0 file (eg eno1 or eno followed by numbers)" >&2<br>&nbsp;echo "USAGE: $0 [full pathname to ifcfg-eno* eth0 file]" >&2<br>
&nbsp;exit 0<br>
fi