diff options
Diffstat (limited to 'foo2zjs/foo2zjs.install')
-rw-r--r-- | foo2zjs/foo2zjs.install | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/foo2zjs/foo2zjs.install b/foo2zjs/foo2zjs.install new file mode 100644 index 0000000..284f90b --- /dev/null +++ b/foo2zjs/foo2zjs.install @@ -0,0 +1,48 @@ +# This is a default template for a post-install scriptlet. You can +# remove any functions you don't need (and this header). + +# arg 1: the new package version +pre_install() { + /bin/true +} + +# arg 1: the new package version +post_install() { + echo "-------------------------" + echo "You need to restart cups." + echo "-------------------------" + echo + echo "You need to add your user to the group \"lp\"." +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + /bin/true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + echo "-------------------------" + echo "You need to restart cups." + echo "-------------------------" + +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + echo "-------------------------" + echo "You need to restart cups." + echo "-------------------------" + +} + +op=$1 +shift +$op $* |