diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
commit | 2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd (patch) | |
tree | a63d3b3b1c89018b5419358eed5c2bb0acf1cd92 /core/lvm2/lvm.initd | |
parent | e374901731eb35599bd6735de4dd38560e3a79b8 (diff) | |
download | aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.bz2 aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.xz |
move core/* to main/
added maintainer to several packages as well
Diffstat (limited to 'core/lvm2/lvm.initd')
-rw-r--r-- | core/lvm2/lvm.initd | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/core/lvm2/lvm.initd b/core/lvm2/lvm.initd deleted file mode 100644 index 022cbb1e0d..0000000000 --- a/core/lvm2/lvm.initd +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/runscript - -dm_in_proc() { - local rc=0 i= - for i in devices misc; do - grep -qs 'device-mapper' /proc/$i - rc=$(($rc + $?)) - done - return $rc -} - -start() { - local rc=0 msg= - ebegin "Setting up the Logical Volume Manager" - if [ -e /proc/modules ] && ! dm_in_proc; then - modprobe dm-mod 2>/dev/null - fi - if [ -d /proc/lvm ] || dm_in_proc; then - vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 &&\ - vgchange --ignorelockingfailure -a y >/dev/null 2>&1 - rc=$? - else - rc=1 - fi - eend $rc -} - -stop() { - ebegin "Shutting down the Logical Volume Manager" - vgchange --ignorelockingfailure -a n >/dev/null 2>&1 - eend $? -} - |