Commit Graph

79 Commits

Author SHA1 Message Date
Nicola Fontana fd772c310c Do not hardcode paths in scripts
Try to reuse the configured paths as much as possible. Unfortunately, to
be able to fully expand some variable (e.g. `bindir`), these files must
be expanded by make, not by configure. This adds some complexity:

https://www.gnu.org/software/automake/manual/html_node/Scripts.html
2021-08-24 17:39:19 +02:00
Florian Pose 9384cc7010 Fixed problems with shell quotes introduced in 66329e1f. 2021-08-24 17:39:06 +02:00
Matthias Schoepfer 1bb6d56fa7 script: run shellcheck on bash / sh scripts
Mostly fixed omitted double quotes, some conversion of $(eval ..) to $(()).
Left the echo -n untouched, shellcheck complains about not being standard in
/bin/sh. Also, seems like some code is dublicated in ethercatctl.in and
init.d/ethercat.in.

Signed-off-by: Matthias Schoepfer <m.schoepfer@rethinkrobotics.com>
2021-08-24 17:37:53 +02:00
Nicola Fontana 6e8c371c42 Do not include AC_CONFIG_FILES in BUILT_SOURCES
BUILT_SOURCES is used to trigger early generation of files in the `make`
process to workaround dependency problems:

    https://www.gnu.org/software/automake/manual/html_node/Sources.html

AC_CONFIG_FILES are generated by `configure`, so they are already
present in the file system even before `make` is called. Furthermore,
AC_CONFIG_FILES already properly handle dist and clean targets, so no
need to add them to EXTRA_DIST or DISTCLEANFILES:

    https://www.gnu.org/software/automake/manual/html_node/Requirements.html
2021-08-24 17:32:32 +02:00
Nicola Fontana db729dc967 Proper systemd support
Follow the directions on integrating systemd with autotools provided by
the systemd documentation itself:

https://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20systemd%20Service%20Files

The snippet has been adapted to better match our coding style, e.g.
directly use of `if` instead of `AS_IF`.
2021-08-24 17:24:58 +02:00
Florian Pose 7444363317 Mention igb driver in config files. 2021-08-24 16:30:55 +02:00
Florian Pose 93da3dc16f Respect bashisms. 2021-08-24 16:30:27 +02:00
Gavin Lambert 0dbebdbddf Exit properly on "restart" request to init script.
[29-init-restart]
2014-06-01 18:07:47 +12:00
Florian Pose 99418519bd Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
Florian Pose db5a33956d Install ethercat service to multi-user target by default. 2012-04-10 19:09:51 +02:00
Florian Pose 8f5d8b736c Add ethercat.conf to distribution. 2012-01-10 12:06:22 +01:00
Florian Pose f575012e75 Enable generic driver by default. 2012-01-09 15:16:40 +01:00
Florian Pose 28d4117b19 Fixed appending to LOADED_MODULES variable. 2012-01-04 18:05:38 +01:00
Florian Pose 6b45d329ce Added first systemd support. 2012-01-04 18:00:36 +01:00
Florian Pose 0568023c52 Added e1000e driver for 2.6.34. Thanks to Siwei Zhuang. 2011-07-06 16:37:40 +02:00
Florian Pose a144042657 Removed tabulators. 2010-02-05 10:29:47 +01:00
Florian Pose 9d4327c47d Added variable vor master module arguments. 2010-01-26 10:15:59 +01:00
Florian Pose c6b034d647 Init script and sysconfig file for generic Ethernet driver. 2009-11-05 10:22:58 +01:00
Florian Pose 12c12b1bab Improved and added license headers. 2009-02-24 12:51:39 +00:00
Florian Pose 919eac507b First version of r8169 driver. 2009-02-04 17:06:14 +00:00
Florian Pose 5ca3d24337 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only. 2009-01-26 11:16:10 +00:00
Florian Pose deb07b5686 merge -r1599:1600 branches/stable-1.4: Removed bashisms from init script. 2009-01-26 10:30:17 +00:00
Florian Pose ddc6040be3 Removed the forcedeth drivers. 2008-09-30 12:41:34 +00:00
Florian Pose 2f736c3ad8 Removed a few old scripts. 2008-08-01 15:01:45 +00:00
Florian Pose ccdb8f86ba Added spaces to init script. 2008-08-01 12:53:00 +00:00
Florian Pose 3ed38e1dc2 Repaired init script status command. 2008-08-01 11:09:39 +00:00
Florian Pose 1d3fe7a613 Improved doc; removed BACKUP variables. 2008-07-04 12:05:21 +00:00
Florian Pose ae09a9fdc7 Minor change. 2008-07-04 12:04:56 +00:00
Florian Pose faf3ec66a8 Remove manual creation of device nodes, this is done by udev. 2008-06-17 13:27:28 +00:00
Florian Pose fd490fb64f Abort, if MAJOR number could not be determined. 2008-06-03 13:14:11 +00:00
Florian Pose 228772c319 Adapted to new entry syntax. 2008-06-02 13:55:46 +00:00
Florian Pose 3b4cae9626 Added the new ethercat comman-line tool with lsec functionality. 2008-05-29 15:11:26 +00:00
Florian Pose 9f0555ee26 Removed some xmldev survivors. 2008-05-29 09:53:10 +00:00
Florian Pose fee7393b89 Fixed RevisionNo. 2008-05-28 07:19:33 +00:00
Florian Pose d13c55494f Added slaveinfo2xml.py. 2008-05-27 12:45:07 +00:00
Florian Pose 95e6dc8d2b Evaluate CoE details from general category; moved current consumption
into general category info.
2008-02-28 10:58:43 +00:00
Florian Pose a395eed1ca Added MODPROBE_FLAGS variable. 2008-02-22 11:04:49 +00:00
Florian Pose 8e6efae673 Renamed master module parameters, re-formatted code documentation. 2008-02-21 09:24:56 +00:00
Florian Pose 072b537d59 Fixed lsec script. 2007-10-05 08:13:50 +00:00
Florian Pose 7f4fa97ff3 Added EoE helpers. 2007-08-20 14:04:29 +00:00
Florian Pose ae80a7fbb3 Fixed init script. 2007-08-14 14:00:07 +00:00
Florian Pose ce972fd4fc Broadcast MAC address accepts first device. 2007-08-10 15:04:06 +00:00
Florian Pose 8ffd18dfc4 Adjusted sysconfig file. 2007-08-10 14:36:16 +00:00
Florian Pose 75650af3b3 removed rc.status dependencies from init script. 2007-08-10 14:28:56 +00:00
Florian Pose b0c1fbaeb0 Removed X:Y addressing scheme, ec_slave_is_coupler(),
ec_master_calc_addressing(), coupler_index and coupler_subindex variables.
Adapted lsec script and examples.
2007-03-09 13:24:15 +00:00
Florian Pose 8ac6516b4e Allow only MAC addresses as device identifiers; replaced master list by
master array; hand ober MAC addresses with array module parameters.
2007-03-08 18:15:25 +00:00
Florian Pose f4e19ee613 Introduced DEVICE_MODULES variable in sysconfig file; enabled init
script to handle serveral device modules.
2007-02-21 13:38:02 +00:00
Florian Pose 27f9a4af2d New module file /sys/ethercat, masters moved to /sys/ethercat/masterX. 2007-02-20 11:28:15 +00:00
Florian Pose 0f53f8fa3e Introduced device IDs; removed comment lines from 8139too; removed
ec_eoeif_count parameter.
2007-02-16 17:13:39 +00:00
Florian Pose 90a00b690e Changed structure of scripts subdirectory. 2007-02-13 13:01:59 +00:00