shell脚本自动修改centos7网卡名称
#!/bin/bash
#
function RENMAE_NIC()
{
local _NICNAME=$(ip addr | grep "^2"|awk -F ": " '{print $2}')
if [[ ${_NICNAME} != "eth0" ]];then
echo -e "\e[40;31m The nic name is [\e[40;31m${_NICNAME}\e[4...
#!/bin/bash
#
function RENMAE_NIC()
{
local _NICNAME=$(ip addr | grep "^2"|awk -F ": " '{print $2}')
if [[ ${_NICNAME} != "eth0" ]];then
echo -e "\e[40;31m The nic name is [\e[40;31m${_NICNAME}\e[4...