LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network functions line 144 is_false error when i start the network RHEL 6.4 (https://www.linuxquestions.org/questions/linux-networking-3/network-functions-line-144-is_false-error-when-i-start-the-network-rhel-6-4-a-4175512701/)

tshepang 07-30-2014 01:37 AM

Network functions line 144 is_false error when i start the network RHEL 6.4
 
I'm running RHEL 6.4 64Bit

Configured a static interface but on service network start I get the following error

./network-functions: line 144: is_false: command not found
./network-functions: line 144: is_false: command not found
./network-functions: line 144: is_false: command not found

Below is the lines from /etc/sysconfig/network-functions


143 fi
144 ! is_false $NM_CONTROLLED && is nm_running && USE_NM=true
145 if [ -z "$UUID" -a "$USE_NM" = "true" ]; then
146 UUID=$(get_uuid_by_config $CONFIG)
147 fi

SIG_SEGV 07-30-2014 03:58 AM

Have you added that line yourself (144) ....

The rest of lines other than line 144 represent a sheel script.

And as per error There is no cmd is_false in shell

tshepang 07-30-2014 08:34 AM

line 144 is part of the network-functions under /etc/sysconfig/network-scripts/network-functions.

To answer your question I did not edit the file at all.

What I found out is that NM_CONTROLLED is read from the interface configuration.By setting NM_CONTROLLED=no fixed the problem.And also did a chkconfig off on NetworkManager.


[root@server network-scripts]# cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
BROADCAST="x.x.x.x"
DNS1="x.x.x.x"
GATEWAY="x.x.x.x"
HWADDR="x:x:x:x"
IPADDR="x.x.x.x"
NETMASK="x.x.x.x"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"


All times are GMT -5. The time now is 06:52 AM.