CentOS 6.1 is_false: command not found

user-pic
Vote 0 Votes

CentOS 6.1 service network restart 會發現有錯誤
network-functions: line 144: is_false:命令找不到
./network-functions: line 144: is_false:命令找不到
./network-functions: line 144: is_false:命令找不到
./network-functions: line 144: is_false:命令找不到

因為 /etc/sysconfig/network-scripts/network-functions 少了 is_false () function
看 144 行 ! is_false $NM_CONTROLLED && is_nm_running && USE_NM=true
is_false () function 只是檢查 NM_CONTROLLED 是否等於 no 而已,
在 network-functions 最後補上這一段即可

is_false () {
     [ "$1" = no ]
}

Leave a comment

About this Entry

This page contains a single entry by Pank published on December 14, 2011 1:26 PM.

Spam Comment Bad IPs was the previous entry in this blog.

GoDaddy $1 domain coupon GIFT1 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives