sh vcloud-centos_fix_eth1_to_eth0.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh vcloud-centos_fix_eth1_to_eth0.sh相关的知识,希望对你有一定的参考价值。



## To fix issues with udev on startup

    #!/bin/sh
    set -x
    if [ x$1 == x"postcustomization" ]; then
    rm -rf /etc/udev/rules.d/70-persistent-net.rules
    sed -i “s/eth1/eth0/g” /etc/sysconfig/network
    mv -f /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth0
    sed -i “s/eth1/eth0/g” /etc/sysconfig/network-scripts/ifcfg-eth0
    /etc/rc.d/init.d/network restart
    fi

以上是关于sh vcloud-centos_fix_eth1_to_eth0.sh的主要内容,如果未能解决你的问题,请参考以下文章

Linux下sh文件运行及桌面环境双击运行sh文件

sh 命令

1.3-监控子脚本load.sh502.sh讲解

shell介绍

sh cca175-problem-5-step-1-sqoop-import.sh

sh 开发者日记:第1天 - /tools/bazel_stamp_vars.sh