equal
deleted
inserted
replaced
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 |