diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-23 22:01:53 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-10-23 22:02:18 +0200 |
commit | ebc82b27288df5c58194083ead4a6e6de7f52d21 (patch) | |
tree | 30d4e874cc19a03dfc62a0ee7c6c5e6c9756d4ec /brscan3/brscan3.install | |
parent | 44c6e7dfa4967843b05ee961fd243f655ed31717 (diff) | |
download | aur-packages-ebc82b27288df5c58194083ead4a6e6de7f52d21.tar.gz aur-packages-ebc82b27288df5c58194083ead4a6e6de7f52d21.tar.xz |
mass update (again :( )
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'brscan3/brscan3.install')
-rwxr-xr-x | brscan3/brscan3.install | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/brscan3/brscan3.install b/brscan3/brscan3.install new file mode 100755 index 0000000..4b1f28b --- /dev/null +++ b/brscan3/brscan3.install @@ -0,0 +1,44 @@ + +# new package version +devices_file="/usr/local/Brother/sane/brsanenetdevice3.cfg" + +pre_install() { + /bin/true +} + +# new package version +post_install() { + /usr/local/Brother/sane/setupSaneScan3 -i + +} + +# the new package version +# old package version +pre_upgrade() { + # If user has already configured their scanner then make a config backup + if [ -f $devices_file ]; then + cp $devices_file $devices_file.backup || return 1 + fi +} + +# new package version +# old package version +post_upgrade() { + # After upgrade revert user's scanner config and delete a config backup + if [ -f $devices_file.backup ]; then + cp $devices_file.backup $devices_file || return 1 + rm $devices_file.backup || return 1 + fi +} + +# old package version +pre_remove() { + /usr/local/Brother/sane/setupSaneScan3 -e + /bin/true +} + +# old package version +post_remove() { + /bin/true +} + |