summaryrefslogtreecommitdiff
path: root/data/rtadvd/_metadata/postrm
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2015-10-13 13:34:54 +0000
committerJay Freeman <saurik@saurik.com>2015-10-13 13:34:54 +0000
commit4b1aacd5d7f21c48567b4a4b7afcf0bf6fc1ab61 (patch)
tree50802dd1fb6a6d37356a53303c10b53751997674 /data/rtadvd/_metadata/postrm
parent60813e41cebfabd9987028a13275d8ebfbc1d191 (diff)
Split rtadvd out of network-cmds.
git-svn-id: http://svn.telesphoreo.org/trunk@811 514c082c-b64e-11dc-b46d-3d985efe055d
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