summaryrefslogtreecommitdiff
path: root/pcr/openrc-net/nfs-utils.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/openrc-net/nfs-utils.install')
-rw-r--r--pcr/openrc-net/nfs-utils.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/openrc-net/nfs-utils.install b/pcr/openrc-net/nfs-utils.install
new file mode 100644
index 000000000..94c5170dc
--- /dev/null
+++ b/pcr/openrc-net/nfs-utils.install
@@ -0,0 +1,22 @@
+_svc=('nfs' 'nfsclient')
+_rlvl="default"
+
+post_install() {
+ echo " as server:"
+ _cmd="rc-update add ${_svc[0]} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+ echo " as client:"
+ _cmd="rc-update add ${_svc[1]} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc[0]} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+ _cmd="rc-update del ${_svc[1]} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}