aboutsummaryrefslogtreecommitdiffstats
path: root/packages/cortexa57-poky-linux/rpcbind/rpcbind/latest.pkg_prerm
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cortexa57-poky-linux/rpcbind/rpcbind/latest.pkg_prerm')
-rw-r--r--packages/cortexa57-poky-linux/rpcbind/rpcbind/latest.pkg_prerm10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/cortexa57-poky-linux/rpcbind/rpcbind/latest.pkg_prerm b/packages/cortexa57-poky-linux/rpcbind/rpcbind/latest.pkg_prerm
new file mode 100644
index 00000000000..b4b5f6beddf
--- /dev/null
+++ b/packages/cortexa57-poky-linux/rpcbind/rpcbind/latest.pkg_prerm
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+ update-alternatives --remove rpcinfo /usr/bin/rpcinfo.rpcbind
+if systemctl >/dev/null 2>/dev/null; then
+ if [ -z "$D" ]; then
+ systemctl stop rpcbind.service rpcbind.socket
+
+ systemctl disable rpcbind.service rpcbind.socket
+ fi
+fi