# See how we were called.
case "$1" in
start)
- # Assign devices
- echo $"Assigning devices: "
- assign_raw
- echo $"done"
+ if [ ! -f /var/lock/subsys/rawdevices ]; then
+ msg_starting rawdevices
+ # Assign devices
+ echo $"Assigning devices: "
+ assign_raw
+ echo $"done"
+ RETVAL=$?
+ $RETVAL -eq 0 ] && touch /var/lock/subsys/rawdevices
+ else
+ msg_Already_Running rawdevices
+ fi
;;
stop)
- # No action to be taken here
- echo $"No action can be taken"
+ if [ -f /var/lock/subsys/rawdevices ]; then
+ msg_stopping rawdevices
+ rm -f /var/lock/subsys/rawdevices >/dev/null 2>&1
+ else
+ msg_Not_Running rawdevices
+ exit 1
+ fi
;;
status)
+ status rawdevices
ID=`id -u`
if [ $ID -eq 0 ]; then
raw -qa