summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Cornish2015-07-09 13:57:34 +1000
committerRob Cornish2015-07-09 13:57:34 +1000
commitbb51bd7b62e4112769ed6a7f1985cbb280967789 (patch)
treebbde5c52503b1d647fd34c5aaf057de0e68eeb86
parent28fc82bb6b475004f4b2c173733e28b2edb3f47e (diff)
downloadaur-bb51bd7b62e4112769ed6a7f1985cbb280967789.tar.gz
Cleaned up install script
-rw-r--r--brscan3.install35
1 files changed, 1 insertions, 34 deletions
diff --git a/brscan3.install b/brscan3.install
index 4b1f28bfdcb..74679dc593b 100644
--- a/brscan3.install
+++ b/brscan3.install
@@ -1,44 +1,11 @@
-
-# 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
+ post_install
}
-# old package version
pre_remove() {
/usr/local/Brother/sane/setupSaneScan3 -e
- /bin/true
-}
-
-# old package version
-post_remove() {
- /bin/true
}
-