#!/bin/sh
#
# /etc/rc.d/ldm: start/stop/reload Light Device Mounter
#

USER_GID=100
USER_UID=100


case $1 in
start)
	/usr/bin/test -f /etc/ldm.conf && . /etc/ldm.conf
	/usr/bin/ldm -g $USER_GID -u $USER_UID -d
	;;
stop)
	/usr/bin/killall -q /usr/bin/ldm
	;;
restart)
	$0 stop
	/bin/sleep 2
	$0 start
	;;
*)
	/bin/echo "Usage: $0 [start|stop|restart]"
	;;
esac

# End of file
