摘要: #!/bin/bash cd /etc/network #清除4-9行 sed -i '4,9d' interfaces #在第3行添加网卡名称 sed -i "3a auto ${1}" interfaces #在第4行添加 sed -i "4a iface ${1} inet static" interfaces #在第5行添加IP sed -i "5a address ${2}" inte... 阅读全文
posted @ 2018-10-12 09:31 米罗西 阅读(712) 评论(0) 推荐(0) 编辑