script/init.d/ethercat.in
author Florian Pose
Tue, 30 Jan 2018 17:08:21 +0100
branchstable-1.5
changeset 2695 ad58465e75ca
parent 2543 0d978e56a635
permissions -rwxr-xr-x
Applied CCAT patch 0001-fix-ccat-netdev-for-v4.11.patch from Beckhoff.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#!/bin/sh
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  Init script for EtherCAT
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#  $Id$
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
#
1326
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
     9
#  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
#
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
#  This file is part of the IgH EtherCAT Master.
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
#
1326
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    13
#  The IgH EtherCAT Master is free software; you can redistribute it and/or
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    14
#  modify it under the terms of the GNU General Public License version 2, as
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    15
#  published by the Free Software Foundation.
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    16
#
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    17
#  The IgH EtherCAT Master is distributed in the hope that it will be useful,
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    18
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    19
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    20
#  Public License for more details.
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    21
#
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    22
#  You should have received a copy of the GNU General Public License along
ef907b0b5125 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only.
Florian Pose <fp@igh-essen.com>
parents: 1323
diff changeset
    23
#  with the IgH EtherCAT Master; if not, write to the Free Software
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
#
1363
11c0b2caa253 Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents: 1326
diff changeset
    26
#  ---
2421
bc2d4bf9cbe5 Removed trailing spaces.
Florian Pose <fp@igh-essen.com>
parents: 1804
diff changeset
    27
#
1363
11c0b2caa253 Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents: 1326
diff changeset
    28
#  The license mentioned above concerns the source code only. Using the EtherCAT
11c0b2caa253 Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents: 1326
diff changeset
    29
#  technology and brand is only permitted in compliance with the industrial
11c0b2caa253 Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents: 1326
diff changeset
    30
#  property and similar rights of Beckhoff Automation GmbH.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
#
1804
742607c464c4 Removed tabulators.
Florian Pose <fp@igh-essen.com>
parents: 1790
diff changeset
    32
#  vim: expandtab
742607c464c4 Removed tabulators.
Florian Pose <fp@igh-essen.com>
parents: 1790
diff changeset
    33
#
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
### BEGIN INIT INFO
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
# Provides:          ethercat
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
# Required-Start:    $local_fs $syslog $network
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    39
# Should-Start:      $time ntp
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
# Required-Stop:     $local_fs $syslog $network
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41
# Should-Stop:       $time ntp
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    42
# Default-Start:     3 5
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
# Default-Stop:      0 1 2 6
1185
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
    44
# Short-Description: EtherCAT master
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
    45
# Description:       EtherCAT master @VERSION@
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    46
### END INIT INFO
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    47
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    48
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    49
2543
0d978e56a635 Use absolute path fpr ldmod; thanks to S. Blanchet.
Florian Pose <fp@igh-essen.com>
parents: 2421
diff changeset
    50
LSMOD=/sbin/lsmod
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    51
MODPROBE=/sbin/modprobe
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    52
RMMOD=/sbin/rmmod
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    53
MODINFO=/sbin/modinfo
1185
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
    54
ETHERCAT=@prefix@/bin/ethercat
1790
c4e3ee5632b2 Added variable vor master module arguments.
Florian Pose <fp@igh-essen.com>
parents: 1556
diff changeset
    55
MASTER_ARGS=
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    56
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    57
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    58
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    59
ETHERCAT_CONFIG=/etc/sysconfig/ethercat
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    60
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    61
if [ ! -r ${ETHERCAT_CONFIG} ]; then
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    62
    echo ${ETHERCAT_CONFIG} not existing;
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    63
    if [ "${1}" = "stop" ]; then
1804
742607c464c4 Removed tabulators.
Florian Pose <fp@igh-essen.com>
parents: 1790
diff changeset
    64
        exit 0
742607c464c4 Removed tabulators.
Florian Pose <fp@igh-essen.com>
parents: 1790
diff changeset
    65
    else
742607c464c4 Removed tabulators.
Florian Pose <fp@igh-essen.com>
parents: 1790
diff changeset
    66
        exit 6
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    67
    fi
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    68
fi
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    69
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    70
. ${ETHERCAT_CONFIG}
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    71
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    72
#------------------------------------------------------------------------------
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    73
1323
10fbef0a3ac5 merge -r1599:1600 branches/stable-1.4: Removed bashisms from init script.
Florian Pose <fp@igh-essen.com>
parents: 1190
diff changeset
    74
exit_success() {
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    75
    if [ -r /etc/rc.status ]; then
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    76
        rc_reset
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    77
        rc_status -v
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    78
        rc_exit
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    79
    else
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    80
        echo " done"
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    81
        exit 0
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    82
    fi
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    83
}
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    84
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    85
#------------------------------------------------------------------------------
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    86
1323
10fbef0a3ac5 merge -r1599:1600 branches/stable-1.4: Removed bashisms from init script.
Florian Pose <fp@igh-essen.com>
parents: 1190
diff changeset
    87
exit_fail() {
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    88
    if [ -r /etc/rc.status ]; then
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    89
        rc_failed
702
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
    90
        rc_status -v
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    91
        rc_exit
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    92
    else
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    93
        echo " failed"
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    94
        exit 1
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    95
    fi
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    96
}
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    97
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    98
#------------------------------------------------------------------------------
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
    99
1323
10fbef0a3ac5 merge -r1599:1600 branches/stable-1.4: Removed bashisms from init script.
Florian Pose <fp@igh-essen.com>
parents: 1190
diff changeset
   100
print_running() {
1185
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   101
    if [ -r /etc/rc.status ]; then
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   102
        rc_reset
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   103
        rc_status -v
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   104
    else
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   105
        echo " running"
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   106
    fi
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   107
}
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   108
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   109
#------------------------------------------------------------------------------
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   110
1323
10fbef0a3ac5 merge -r1599:1600 branches/stable-1.4: Removed bashisms from init script.
Florian Pose <fp@igh-essen.com>
parents: 1190
diff changeset
   111
print_dead() {
702
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   112
    if [ -r /etc/rc.status ]; then
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   113
        rc_failed
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   114
        rc_status -v
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   115
    else
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   116
        echo " dead"
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   117
    fi
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   118
}
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   119
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   120
#------------------------------------------------------------------------------
bc985819713a Fixed init script.
Florian Pose <fp@igh-essen.com>
parents: 698
diff changeset
   121
1323
10fbef0a3ac5 merge -r1599:1600 branches/stable-1.4: Removed bashisms from init script.
Florian Pose <fp@igh-essen.com>
parents: 1190
diff changeset
   122
parse_mac_address() {
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   123
    if [ -z "${1}" ]; then
639
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   124
        MAC=""
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   125
    elif echo ${1} | grep -qE '^([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$'; then
639
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   126
        MAC=${1}
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   127
    else
639
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   128
        echo Invalid MAC address \"${1}\" in ${ETHERCAT_CONFIG}
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   129
        exit_fail
2421
bc2d4bf9cbe5 Removed trailing spaces.
Florian Pose <fp@igh-essen.com>
parents: 1804
diff changeset
   130
    fi
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   131
}
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   132
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   133
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   134
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   135
if [ -r /etc/rc.status ]; then
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   136
    . /etc/rc.status
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   137
    rc_reset
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   138
fi
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   139
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   140
case "${1}" in
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   141
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   142
start)
1190
5f2e38dddd4e Added spaces to init script.
Florian Pose <fp@igh-essen.com>
parents: 1185
diff changeset
   143
    echo -n "Starting EtherCAT master @VERSION@ "
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   144
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   145
    # construct DEVICES and BACKUPS from configuration variables
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   146
    DEVICES=""
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   147
    BACKUPS=""
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   148
    MASTER_INDEX=0
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   149
    while true; do
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   150
        DEVICE=$(eval echo "\${MASTER${MASTER_INDEX}_DEVICE}")
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   151
        BACKUP=$(eval echo "\${MASTER${MASTER_INDEX}_BACKUP}")
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   152
        if [ -z "${DEVICE}" ]; then break; fi
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   153
639
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   154
        if [ ${MASTER_INDEX} -gt 0 ]; then
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   155
            DEVICES=${DEVICES},
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   156
            BACKUPS=${BACKUPS},
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   157
        fi
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   158
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   159
        parse_mac_address ${DEVICE}
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   160
        DEVICES=${DEVICES}${MAC}
2421
bc2d4bf9cbe5 Removed trailing spaces.
Florian Pose <fp@igh-essen.com>
parents: 1804
diff changeset
   161
639
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   162
        parse_mac_address ${BACKUP}
aa23c48dca2d Allow only MAC addresses as device identifiers; replaced master list by
Florian Pose <fp@igh-essen.com>
parents: 588
diff changeset
   163
        BACKUPS=${BACKUPS}${MAC}
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   164
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   165
        MASTER_INDEX=$(expr ${MASTER_INDEX} + 1)
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   166
    done
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   167
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   168
    # load master module
1790
c4e3ee5632b2 Added variable vor master module arguments.
Florian Pose <fp@igh-essen.com>
parents: 1556
diff changeset
   169
    if ! ${MODPROBE} ${MODPROBE_FLAGS} ec_master ${MASTER_ARGS} \
812
80c3d9c8292f Added MODPROBE_FLAGS variable.
Florian Pose <fp@igh-essen.com>
parents: 806
diff changeset
   170
            main_devices=${DEVICES} backup_devices=${BACKUPS}; then
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   171
        exit_fail
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   172
    fi
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   173
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   174
    # check for modules to replace
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   175
    for MODULE in ${DEVICE_MODULES}; do
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   176
        ECMODULE=ec_${MODULE}
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   177
        if ! ${MODINFO} ${ECMODULE} > /dev/null; then
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   178
            continue # ec_* module not found
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   179
        fi
1556
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   180
        if [ ${MODULE} != "generic" ]; then
2543
0d978e56a635 Use absolute path fpr ldmod; thanks to S. Blanchet.
Florian Pose <fp@igh-essen.com>
parents: 2421
diff changeset
   181
            if ${LSMOD} | grep "^${MODULE} " > /dev/null; then
1556
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   182
                if ! ${RMMOD} ${MODULE}; then
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   183
                    exit_fail
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   184
                fi
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   185
            fi
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   186
        fi
812
80c3d9c8292f Added MODPROBE_FLAGS variable.
Florian Pose <fp@igh-essen.com>
parents: 806
diff changeset
   187
        if ! ${MODPROBE} ${MODPROBE_FLAGS} ${ECMODULE}; then
1556
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   188
            if [ ${MODULE} != "generic" ]; then
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   189
                ${MODPROBE} ${MODPROBE_FLAGS} ${MODULE} # try to restore
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   190
            fi
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   191
            exit_fail
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   192
        fi
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   193
    done
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   194
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   195
    exit_success
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   196
    ;;
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   197
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   198
stop)
1190
5f2e38dddd4e Added spaces to init script.
Florian Pose <fp@igh-essen.com>
parents: 1185
diff changeset
   199
    echo -n "Shutting down EtherCAT master @VERSION@ "
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   200
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   201
    # unload EtherCAT device modules
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   202
    for MODULE in ${DEVICE_MODULES} master; do
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   203
        ECMODULE=ec_${MODULE}
2543
0d978e56a635 Use absolute path fpr ldmod; thanks to S. Blanchet.
Florian Pose <fp@igh-essen.com>
parents: 2421
diff changeset
   204
        if ! ${LSMOD} | grep -q "^${ECMODULE} "; then
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   205
            continue # ec_* module not loaded
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   206
        fi
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   207
        if ! ${RMMOD} ${ECMODULE}; then
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   208
            exit_fail
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   209
        fi;
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   210
    done
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   211
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   212
    sleep 1
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   213
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   214
    # reload previous modules
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   215
    for MODULE in ${DEVICE_MODULES}; do
1556
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   216
        if [ ${MODULE} != "generic" ]; then
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   217
            if ! ${MODPROBE} ${MODPROBE_FLAGS} ${MODULE}; then
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   218
                echo Warning: Failed to restore ${MODULE}.
52ec7297637c Init script and sysconfig file for generic Ethernet driver.
Florian Pose <fp@igh-essen.com>
parents: 1363
diff changeset
   219
            fi
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   220
        fi
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
   221
    done
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   222
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   223
    exit_success
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   224
    ;;
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   225
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   226
restart)
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   227
    $0 stop || exit 1
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   228
    sleep 1
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   229
    $0 start
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   230
    ;;
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   231
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   232
status)
1190
5f2e38dddd4e Added spaces to init script.
Florian Pose <fp@igh-essen.com>
parents: 1185
diff changeset
   233
    echo "Checking for EtherCAT master @VERSION@ "
1185
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   234
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   235
    # count masters in configuration file
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   236
    MASTER_COUNT=0
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   237
    while true; do
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   238
        DEVICE=$(eval echo "\${MASTER${MASTER_COUNT}_DEVICE}")
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   239
        if [ -z "${DEVICE}" ]; then break; fi
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   240
        MASTER_COUNT=$(expr ${MASTER_COUNT} + 1)
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   241
    done
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   242
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   243
    RESULT=0
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   244
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   245
    for i in `seq 0 $(expr ${MASTER_COUNT} - 1)`; do
1190
5f2e38dddd4e Added spaces to init script.
Florian Pose <fp@igh-essen.com>
parents: 1185
diff changeset
   246
        echo -n "Master${i} "
2421
bc2d4bf9cbe5 Removed trailing spaces.
Florian Pose <fp@igh-essen.com>
parents: 1804
diff changeset
   247
1185
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   248
        # Check if the master is in idle or operation phase
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   249
        ${ETHERCAT} master --master ${i} 2>/dev/null | \
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   250
            grep -qE 'Phase:[[:space:]]*Idle|Phase:[[:space:]]*Operation'
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   251
        EXITCODE=$?
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   252
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   253
        if [ ${EXITCODE} -eq 0 ]; then
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   254
            print_running
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   255
        else
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   256
            print_dead
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   257
            RESULT=1
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   258
        fi
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   259
    done
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   260
337ce4fc2383 Repaired init script status command.
Florian Pose <fp@igh-essen.com>
parents: 1090
diff changeset
   261
    exit ${RESULT}
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   262
    ;;
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   263
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   264
*)
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   265
    echo "USAGE: $0 {start|stop|restart|status}"
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
   266
    ;;
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   267
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   268
esac
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   269
698
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   270
if [ -r /etc/rc.status ]; then
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   271
    rc_exit
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   272
else
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   273
    exit 1
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   274
fi
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   275
6693ea7c9047 removed rc.status dependencies from init script.
Florian Pose <fp@igh-essen.com>
parents: 639
diff changeset
   276
#------------------------------------------------------------------------------