1 Description: Make these scripts work for Debian+OpenRC setup.
2 Author: Mo Zhou <lumin@debian.org>
5 diff --git a/etc/init.d/zfs-import.in b/etc/init.d/zfs-import.in
6 index fea661bb..404af82d 100644
7 --- a/etc/init.d/zfs-import.in
8 +++ b/etc/init.d/zfs-import.in
13 # zfs-import This script will import ZFS pools
15 @@ -308,8 +308,6 @@ do_start()
17 # ----------------------------------------------------
19 -if [ ! -e /sbin/openrc-run ]
24 @@ -331,9 +329,3 @@ then
29 - # Create wrapper functions since Gentoo don't use the case part.
30 - depend() { do_depend; }
31 - start() { do_start; }
32 - status() { do_status; }
34 diff --git a/etc/init.d/zfs-mount.in b/etc/init.d/zfs-mount.in
35 index fa954e09..b6a3de9b 100644
36 --- a/etc/init.d/zfs-mount.in
37 +++ b/etc/init.d/zfs-mount.in
42 # zfs-mount This script will mount/umount the zfs filesystems.
44 @@ -199,8 +199,6 @@ do_stop()
46 # ----------------------------------------------------
48 -if [ ! -e /sbin/openrc-run ]
53 @@ -219,9 +217,3 @@ then
58 - # Create wrapper functions since Gentoo don't use the case part.
59 - depend() { do_depend; }
60 - start() { do_start; }
63 diff --git a/etc/init.d/zfs-share.in b/etc/init.d/zfs-share.in
64 index ce3cc1cc..0b14f481 100644
65 --- a/etc/init.d/zfs-share.in
66 +++ b/etc/init.d/zfs-share.in
71 # zfs-share This script will network share zfs filesystems and volumes.
73 @@ -58,7 +58,6 @@ do_stop()
75 # ----------------------------------------------------
77 -if [ ! -e /sbin/openrc-run ]; then
81 @@ -77,9 +76,3 @@ if [ ! -e /sbin/openrc-run ]; then
86 - # Create wrapper functions since Gentoo don't use the case part.
87 - depend() { do_depend; }
88 - start() { do_start; }
91 diff --git a/etc/init.d/zfs-zed.in b/etc/init.d/zfs-zed.in
92 index d0086eef..4798105d 100644
93 --- a/etc/init.d/zfs-zed.in
94 +++ b/etc/init.d/zfs-zed.in
101 @@ -98,7 +98,6 @@ do_reload()
103 # ----------------------------------------------------
105 -if [ ! -e /sbin/openrc-run ]; then
109 @@ -124,11 +123,3 @@ if [ ! -e /sbin/openrc-run ]; then
114 - # Create wrapper functions since Gentoo don't use the case part.
115 - depend() { do_depend; }
116 - start() { do_start; }
117 - stop() { do_stop; }
118 - status() { do_status; }
119 - reload() { do_reload; }