Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6

36 bytes added, 17:14, 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