This commit is contained in:
committed by
Git OBS Bridge
parent
7a5efa9688
commit
c114ca9b11
41
boot.device-mapper
Normal file
41
boot.device-mapper
Normal file
@@ -0,0 +1,41 @@
|
||||
#! /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:
|
||||
# Description: activate device mapper
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Activating device mapper..."
|
||||
lsmod | grep "^dm[-_]mod[ ]" >/dev/null 2>&1 || modprobe dm-mod
|
||||
rc_status -v -r
|
||||
;;
|
||||
stop)
|
||||
# module unloading seems to be uneliable in kernel 2.6
|
||||
# rmmod dm-mod
|
||||
# rc_status -v
|
||||
;;
|
||||
status)
|
||||
rc_failed 4
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rc_exit
|
Reference in New Issue
Block a user