首页 默认分类 正文
  • 本文约292字,阅读需1分钟
  • 3105
  • 0

网口启动脚本


#!/bin/bash ifconfig fml-mac3 192.168.1.238 up ping -c 1 192.168.1.238 > /dev/null 2>&1 if [ $? -eq 0 ];then echo "success" > /dev/null 2>&1 else echo "fml-mac3 loading failed"

fi

ifconfig fml-mac6 172.20.3.12 up ping -c 1 172.20.3.12 > /dev/null 2>&1 if [ $? -eq 0 ];then echo "success" > /dev/null 2>&1 else echo "fml-mac6 loading failed"

fi exit 0




    评论
    更换验证码
    友情链接