summaryrefslogtreecommitdiff
path: root/data/rtadvd/_metadata/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'data/rtadvd/_metadata/postrm')
-rwxr-xr-xdata/rtadvd/_metadata/postrm8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/rtadvd/_metadata/postrm b/data/rtadvd/_metadata/postrm
new file mode 100755
index 000000000..ed3dfacdd
--- /dev/null
+++ b/data/rtadvd/_metadata/postrm
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [[ $1 == abort-install || $1 == abort-upgrade ]]; then
+ bin=/usr/sbin/rtadvd
+ if [[ -e "${bin}".sbin ]]; then
+ mv -f -v "${bin}"{.sbin,} || exit 1
+ fi
+fi