diff options
Diffstat (limited to 'packages/ubuntu/debian/preinst')
-rw-r--r-- | packages/ubuntu/debian/preinst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/ubuntu/debian/preinst b/packages/ubuntu/debian/preinst new file mode 100644 index 000000000..cf9323e94 --- /dev/null +++ b/packages/ubuntu/debian/preinst @@ -0,0 +1,35 @@ +#! /bin/sh +# preinst script for nbox +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <new-preinst> `install' +# * <new-preinst> `install' <old-version> +# * <new-preinst> `upgrade' <old-version> +# * <old-preinst> `abort-upgrade' <new-version> + +case "$1" in + install|upgrade) + if test -f /usr/local/sbin/nprobe; then + rm /usr/local/sbin/nprobe + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + + + +exit 0 |