Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7 - HD2

36 bytes added, 17:16, 7 October 2016
no edit summary
&#35;<br>
&#35; Purpose: Creates system info report<br>
&#35;<br>&#35; USAGE: ./network-info.bash [full pathname to ifcfg-eth0 eno* 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-eth0 eno file(eg eno1 or eno followed by numbers)" >&2<br>&nbsp;echo "USAGE: $0 [full pathname to ifcfg-eth0 eno* file]" >&2<br>
&nbsp;exit 0<br>
fi
13,420
edits

Navigation menu