summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeph332016-06-17 18:47:33 +0100
committerZeph332016-06-17 18:47:33 +0100
commit8aabc22606d60a292f941b034452671099fe431d (patch)
tree9a4aea94d7d57a73a64df6e65cf60f7e175b7194
parent8cb3af0a806c8648a4d7a8989e7c24e63c2303bd (diff)
downloadaur-8aabc22606d60a292f941b034452671099fe431d.tar.gz
Add check_cups
-rw-r--r--lexmark_pro700.install45
1 files changed, 25 insertions, 20 deletions
diff --git a/lexmark_pro700.install b/lexmark_pro700.install
index e3ae8909d199..6ccfb9897ff2 100644
--- a/lexmark_pro700.install
+++ b/lexmark_pro700.install
@@ -1,5 +1,26 @@
#!/bin/bash
+check_cups
+{
+ echo ""
+ echo ""
+ echo ""
+ echo "==============================================================================="
+ echo "== Check cups is started : =="
+ echo "== systemctl status org.cups.cupsd.service =="
+ echo "== =="
+ echo "== If not, start cups : =="
+ echo "== sudo systemctl start org.cups.cupsd.service =="
+ echo "== For start cups at boot : =="
+ echo "== sudo systemctl enable org.cups.cupsd.service =="
+ echo "== =="
+ echo "== Install your printer with cups : http://localhost:631 =="
+ echo "== Select ppd file in =="
+ echo "== /usr/share/cups/model/Lexmark =="
+ echo "== /usr/share/ppd/Lexmark =="
+ echo "==============================================================================="
+}
+
post_install() {
echo 'Executing post install scripts ...'
@@ -434,28 +455,12 @@ post_install() {
ls /usr/share/applications | grep desktop | grep cache | xargs -ti cp /tmp/app /usr/share/applications/{} > /dev/null 2>&1
rm /tmp/app
fi
- echo ""
- echo ""
- echo ""
- echo "==============================================================================="
- echo "== Check cups is started : =="
- echo "== systemctl status org.cups.cupsd.service =="
- echo "== =="
- echo "== If not, start cups : =="
- echo "== sudo systemctl start org.cups.cupsd.service =="
- echo "== For start cups at boot : =="
- echo "== sudo systemctl enable org.cups.cupsd.service =="
- echo "== =="
- echo "== Install your printer with cups : http://localhost:631 =="
- echo "== Select ppd file in =="
- echo "== /usr/share/cups/model/Lexmark =="
- echo "== /usr/share/ppd/Lexmark =="
- echo "==============================================================================="
+ check_cups
}
-#post_upgrade() {
-#post_install
-#}
+post_upgrade() {
+ check_cups
+}
pre_remove() {
echo 'Executing pre remove scripts ...'