更改主机名脚本

#!/bin/bash #获取ipipaddr=`/sbin/ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d : -f2 | awk '{print $1}'` #rename networkname=$1hostname $n
posted @ 2015-10-10 16:52  paul_hch  阅读(478)  评论(0编辑  收藏  举报