13,420
edits
Changes
no edit summary
#<br>
# Purpose: Creates system info report<br>
#<br># 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>
echo "You need to provide the full pathname to ifcfg-eth0 eno file(eg eno1 or eno followed by numbers)" >&2<br> echo "USAGE: $0 [full pathname to ifcfg-eth0 eno* file]" >&2<br>
exit 0<br>
fi