examples/msr/init.sh
author Florian Pose <fp@igh-essen.com>
Fri, 29 Feb 2008 12:19:48 +0000
changeset 847 92266462d411
parent 451 cd6b819c2351
permissions -rwxr-xr-x
Saparated ec_sdo_t, ec_sdo_entry_t and ec_sdo_request_t.
451
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#!/bin/sh
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#------------------------------------------------------------------------------
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  MSR Init Script
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#  $Id$
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
#
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
#------------------------------------------------------------------------------
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
### BEGIN INIT INFO
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
# Provides:          msr
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
# Required-Start:    $local_fs $syslog $network
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
# Should-Start:      $time ntp ethercat
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
# Required-Stop:     $local_fs $syslog $network
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
# Should-Stop:       $time ntp ethercat
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
# Default-Start:     3 5
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
# Default-Stop:      0 1 2 6
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
# Short-Description: MSR module
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
# Description:
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
### END INIT INFO
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
#------------------------------------------------------------------------------
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
# <Customizing>
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
NAME="MSR EtherCAT sample"
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
BASE=/opt/etherlab
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
MSR_SERVER=$BASE/bin/msrserv.pl
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
MODULE=ec_msr_sample
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
RTAI_PATH=/usr/realtime
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    32
RTAI_MODULES="hal up" # sem math
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    33
DEVICE=msr
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
DEVMASK=664
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
GROUP=users
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
# </Customizing>
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    39
#------------------------------------------------------------------------------
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41
. /etc/rc.status
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    42
rc_reset
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    44
#------------------------------------------------------------------------------
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    45
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    46
case "$1" in
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    47
    start)
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    48
	echo -n Starting $NAME" "
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    49
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    50
	# Insert RTAI modules
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    51
	for mod in $RTAI_MODULES; do
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    52
	    if ! lsmod | grep -q "^rtai_$mod"; then
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    53
		if ! insmod $RTAI_PATH/modules/rtai_$mod.ko; then
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    54
		    /bin/false
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    55
		    rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    56
		    rc_exit
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    57
		fi
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    58
	    fi
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    59
	done
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    60
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    61
	# Insert realtime module
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    62
	if ! modprobe $MODULE; then
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    63
	    /bin/false
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    64
	    rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    65
	    rc_exit
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    66
	fi
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    67
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    68
	#sleep 2
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    69
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    70
	# Create MSR device
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    71
	MAJOR=`cat /proc/devices | awk "\\$2==\"$DEVICE\" {print \\$1}"`
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    72
	rm -f /dev/${DEVICE}
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    73
	mknod /dev/${DEVICE} c $MAJOR 0
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    74
	chgrp $GROUP /dev/${DEVICE}
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    75
	chmod $DEVMASK /dev/${DEVICE}
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    76
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    77
	#sleep 1
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    78
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    79
	# Start MSR-Server
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    80
	startproc $MSR_SERVER 1>/dev/null 2>/dev/null
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    81
	rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    82
	;;
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    83
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    84
    stop)
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    85
	echo -n Shutting down $NAME" "
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    86
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    87
	if ! killproc $MSR_SERVER; then
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    88
	    /bin/false
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    89
	    rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    90
	    rc_exit
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    91
	fi
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    92
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    93
	if ! /sbin/rmmod $MODULE; then
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    94
	    /bin/false
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    95
	    rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    96
	    rc_exit
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    97
	fi
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    98
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    99
	# Remove stale nodes
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   100
	rm -f /dev/${DEVICE} /dev/${DEVICE}0
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   101
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   102
	rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   103
	;;
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   104
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   105
    restart)
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   106
	$0 stop || exit 1
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   107
	sleep 1
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   108
	$0 start
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   109
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   110
	rc_status
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   111
	;;
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   112
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   113
    status)
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   114
	echo -n "Checking for MSR module: "
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   115
	/sbin/lsmod | grep -q "^$MODULE"
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   116
	rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   117
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   118
	echo -n "Checking for MSR server: "
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   119
	checkproc $MSR_SERVER
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   120
	rc_status -v
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   121
	;;
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   122
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   123
    *)
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   124
	echo "Usage: $0 {start|stop|status|restart}"
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   125
	exit 1
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   126
	;;
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   127
esac
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   128
cd6b819c2351 MSR example: Replaced msr_load and msr_unload with init script, removed msr_param.h
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
   129
rc_exit