2009-05-15 22:00:20 +02:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany. All rights reserved.
|
|
|
|
#
|
|
|
|
# /etc/init.d/boot.device-mapper
|
|
|
|
#
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: boot.device-mapper
|
|
|
|
# Required-Start: boot.udev boot.rootfsck
|
|
|
|
# Required-Stop: boot.udev
|
|
|
|
# Default-Start: B
|
|
|
|
# Default-Stop:
|
2012-10-23 19:40:13 +02:00
|
|
|
# Short-Description: DM
|
2009-05-15 22:00:20 +02:00
|
|
|
# Description: activate device mapper
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
. /etc/rc.status
|
|
|
|
|
|
|
|
rc_reset
|
|
|
|
|
|
|
|
case "$1" in
|
2012-10-18 10:15:42 +02:00
|
|
|
start)
|
|
|
|
echo -n "Activating device mapper..."
|
|
|
|
modprobe dm-mod || rc_failed 1
|
|
|
|
rc_status -v
|
2009-05-15 22:00:20 +02:00
|
|
|
;;
|
|
|
|
stop)
|
2012-10-18 10:15:42 +02:00
|
|
|
rc_failed 3
|
|
|
|
rc_status -v
|
2009-05-15 22:00:20 +02:00
|
|
|
;;
|
2012-10-23 19:40:13 +02:00
|
|
|
reload)
|
|
|
|
rc_failed 3
|
|
|
|
rc_status -v
|
|
|
|
;;
|
2009-05-15 22:00:20 +02:00
|
|
|
status)
|
|
|
|
rc_failed 4
|
|
|
|
rc_status -v
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {start|stop|status}"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
rc_exit
|