script/init.d/ethercat.in
changeset 1804 742607c464c4
parent 1790 c4e3ee5632b2
child 2421 bc2d4bf9cbe5
child 2589 2b9c78543663
equal deleted inserted replaced
1803:5b04770444df 1804:742607c464c4
    26 #  ---
    26 #  ---
    27 #  
    27 #  
    28 #  The license mentioned above concerns the source code only. Using the EtherCAT
    28 #  The license mentioned above concerns the source code only. Using the EtherCAT
    29 #  technology and brand is only permitted in compliance with the industrial
    29 #  technology and brand is only permitted in compliance with the industrial
    30 #  property and similar rights of Beckhoff Automation GmbH.
    30 #  property and similar rights of Beckhoff Automation GmbH.
       
    31 #
       
    32 #  vim: expandtab
    31 #
    33 #
    32 #------------------------------------------------------------------------------
    34 #------------------------------------------------------------------------------
    33 
    35 
    34 ### BEGIN INIT INFO
    36 ### BEGIN INIT INFO
    35 # Provides:          ethercat
    37 # Provides:          ethercat
    56 ETHERCAT_CONFIG=/etc/sysconfig/ethercat
    58 ETHERCAT_CONFIG=/etc/sysconfig/ethercat
    57 
    59 
    58 if [ ! -r ${ETHERCAT_CONFIG} ]; then
    60 if [ ! -r ${ETHERCAT_CONFIG} ]; then
    59     echo ${ETHERCAT_CONFIG} not existing;
    61     echo ${ETHERCAT_CONFIG} not existing;
    60     if [ "${1}" = "stop" ]; then
    62     if [ "${1}" = "stop" ]; then
    61 	exit 0
    63         exit 0
    62     else
    64     else
    63 	exit 6
    65         exit 6
    64     fi
    66     fi
    65 fi
    67 fi
    66 
    68 
    67 . ${ETHERCAT_CONFIG}
    69 . ${ETHERCAT_CONFIG}
    68 
    70