Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
etherlabmaster
Commits
a69783f0
Commit
a69783f0
authored
15 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Init script and sysconfig file for generic Ethernet driver.
parent
0715ffc2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/init.d/ethercat.in
+12
-6
12 additions, 6 deletions
script/init.d/ethercat.in
script/sysconfig/ethercat
+11
-7
11 additions, 7 deletions
script/sysconfig/ethercat
with
23 additions
and
13 deletions
script/init.d/ethercat.in
+
12
−
6
View file @
a69783f0
...
...
@@ -173,13 +173,17 @@ start)
if
!
${
MODINFO
}
${
ECMODULE
}
>
/dev/null
;
then
continue
# ec_* module not found
fi
if
lsmod |
grep
"^
${
MODULE
}
"
>
/dev/null
;
then
if
!
${
RMMOD
}
${
MODULE
}
;
then
exit_fail
if
[
${
MODULE
}
!=
"generic"
]
;
then
if
lsmod |
grep
"^
${
MODULE
}
"
>
/dev/null
;
then
if
!
${
RMMOD
}
${
MODULE
}
;
then
exit_fail
fi
fi
fi
if
!
${
MODPROBE
}
${
MODPROBE_FLAGS
}
${
ECMODULE
}
;
then
${
MODPROBE
}
${
MODPROBE_FLAGS
}
${
MODULE
}
# try to restore module
if
[
${
MODULE
}
!=
"generic"
]
;
then
${
MODPROBE
}
${
MODPROBE_FLAGS
}
${
MODULE
}
# try to restore
fi
exit_fail
fi
done
...
...
@@ -205,8 +209,10 @@ stop)
# reload previous modules
for
MODULE
in
${
DEVICE_MODULES
}
;
do
if
!
${
MODPROBE
}
${
MODPROBE_FLAGS
}
${
MODULE
}
;
then
echo
Warning: Failed to restore
${
MODULE
}
.
if
[
${
MODULE
}
!=
"generic"
]
;
then
if
!
${
MODPROBE
}
${
MODPROBE_FLAGS
}
${
MODULE
}
;
then
echo
Warning: Failed to restore
${
MODULE
}
.
fi
fi
done
...
...
This diff is collapsed.
Click to expand it.
script/sysconfig/ethercat
+
11
−
7
View file @
a69783f0
...
...
@@ -26,17 +26,21 @@ MASTER0_DEVICE=""
#MASTER1_DEVICE=""
#
# Ethernet driver modules to
replace with EtherCAT-capable ones
.
# Ethernet driver modules to
use for EtherCAT operation
.
#
# The init script will try to unload the Ethernet driver modules in the list
# and replace them with the EtherCAT-capable ones, respectively. If a certain
# (EtherCAT-capable) driver is not found, a warning will appear.
# Specify a non-empty list of Ethernet drivers, that shall be used for EtherCAT
# operation.
#
# Possible values: 8139too, e100, e1000, r8169.
# Except for the generic Ethernet driver module, the init script will try to
# unload the usual Ethernet driver modules in the list and replace them with
# the EtherCAT-capable ones. If a certain (EtherCAT-capable) driver is not
# found, a warning will appear.
#
# Possible values: 8139too, e100, e1000, r8169, generic.
# Separate multiple drivers with spaces.
#
# Note: The e100, e1000
and r8169
drivers are not built by default.
Enable them
# with the --enable-<driver> configure switches.
# Note: The e100, e1000
, r8169 and generic
drivers are not built by default.
#
Enable them
with the --enable-<driver> configure switches.
#
DEVICE_MODULES=""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment