1

Network script doesn't work. CentOS 2.6

view story
linux-howto

http://stackoverflow.com – Centos 2.6.32-179.9.1.el6.i686 Hello, I have a problem with my noowbie script. It does not work. When I try to use it (for ex., /etc/init.d/myscript start) nothing happened. Before that I make chkconfig --add myscript and chmod 777 on it. Can you help me? #!/bin/bash #chkconfig: 2345 10 90 #description test . /etc/init.d/functions if [ ! -f /etc/sysconfig/network ]; then exit 0 fi . /etc/sysconfig/network if [ -f /etc/sysconfig/network-scripts/ifcfg-eth1 ]; then . /etc/sysconfig/network-scripts/ifcfg-eth1 fi [ "${NETWORKING}"="no" ] && exit 0 [ -x -a /sbin/ifconfig ] || (HowTos)