diff options
Diffstat (limited to 'data/rtadvd/_metadata/preinst')
-rwxr-xr-x | data/rtadvd/_metadata/preinst | 8 |
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 |