# old version (without -$pkgrel): ${1%%-*}
# new version (without -$pkgrel): ${2%%-*}

PKGNAME="sbis3plugin-compat"

# arg 1:  the new package version
pre_install() {
    true
}

# arg 1:  the new package version
post_install() {
    post_upgrade $@
}

# arg 1:  the new package version
# arg 2:  the old package version
pre_upgrade() {
    true
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
    [[ -f /usr/lib/ublinux/rc.local.d/99-sbis3plugin-compat ]] && /usr/lib/ublinux/rc.local.d/99-sbis3plugin-compat
}

# arg 1:  the old package version
pre_remove() {
    true
}

# arg 1:  the old package version
post_remove() {
    [[ -f /usr/lib/ublinux/rc.preinit.d/13-release ]] && /usr/lib/ublinux/rc.preinit.d/13-release
}
