summaryrefslogtreecommitdiff
path: root/data/rtadvd/_metadata/preinst
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/preinst
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/preinst')
-rwxr-xr-xdata/rtadvd/_metadata/preinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/rtadvd/_metadata/preinst b/data/rtadvd/_metadata/preinst
new file mode 100755
index 000000000..3df017f4c
--- /dev/null
+++ b/data/rtadvd/_metadata/preinst
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [[ $1 == install || $1 == upgrade ]]; then
+ bin=/usr/sbin/rtadvd
+ if [[ -e "${bin}" ]]; then
+ cp -af "${bin}"{,.sbin} || exit 1
+ fi
+fi