equal
deleted
inserted
replaced
74 |
74 |
75 # Install rc script |
75 # Install rc script |
76 |
76 |
77 echo " installing startup script..." |
77 echo " installing startup script..." |
78 cp ethercat.sh /etc/init.d/ethercat || exit 1 |
78 cp ethercat.sh /etc/init.d/ethercat || exit 1 |
|
79 chmod +x /etc/init.d/ethercat || exit 1 |
79 if [ ! -L /usr/sbin/rcethercat ]; then |
80 if [ ! -L /usr/sbin/rcethercat ]; then |
80 ln -s /etc/init.d/ethercat /usr/sbin/rcethercat || exit 1 |
81 ln -s /etc/init.d/ethercat /usr/sbin/rcethercat || exit 1 |
81 fi |
82 fi |
82 |
83 |
83 # Install tools |
84 # Install tools |
84 |
85 |
85 echo " installing tools..." |
86 echo " installing tools..." |
86 cp tools/ec_list.pl /usr/local/bin/ec_list || exit 1 |
87 cp tools/ec_list.pl /usr/local/bin/ec_list || exit 1 |
|
88 chmod +x /usr/local/bin/ec_list || exit 1 |
87 |
89 |
88 # Finish |
90 # Finish |
89 |
91 |
90 echo "EtherCAT installer done." |
92 echo "EtherCAT installer done." |
91 exit 0 |
93 exit 0 |