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
5c3544d8
Commit
5c3544d8
authored
18 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Restart action in RC script
parent
de081fc4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ethercat.sh
+6
-2
6 additions, 2 deletions
ethercat.sh
with
6 additions
and
2 deletions
ethercat.sh
+
6
−
2
View file @
5c3544d8
...
...
@@ -14,7 +14,7 @@ CONFIGFILE=/etc/sysconfig/ethercat
print_usage
()
{
echo
"Usage
$0
{ start | stop }"
echo
"Usage
:
$0
{ start | stop
| restart
}"
}
unload_module
()
...
...
@@ -45,19 +45,22 @@ else
fi
case
$ACTION
in
start
)
start
|
restart
)
echo
"Starting EtherCAT master..."
# remove modules
unload_module 8139too
unload_module 8139cp
unload_module ec_8139too
unload_module ec_master
echo
" loading master modules..."
if
!
modprobe ec_8139too
ec_device_index
=
$DEVICEINDEX
;
then
echo
"ERROR: Failed to load module!"
exit
1
fi
;;
stop
)
echo
"Stopping EtherCAT master..."
unload_module ec_8139too
...
...
@@ -66,6 +69,7 @@ case $ACTION in
echo
"Warning: Failed to restore 8139too module."
fi
;;
*
)
print_usage
exit
1
...
...
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