From ede3c9afce403ba9cd21a0112dc55a751fc049cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Thu, 10 Oct 2019 15:10:50 +0200 Subject: [PATCH] Maybe restarting cups helps with unwanted prompts --- addfollowmeprint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addfollowmeprint.sh b/addfollowmeprint.sh index 7338e15..d0d0868 100755 --- a/addfollowmeprint.sh +++ b/addfollowmeprint.sh @@ -324,11 +324,13 @@ if [ "${Uname}" = "darwin" ]; then OS_Min_Vers=$(sw_vers | grep ProductVersion | awk '{print $2}' | cut -d "." -f2) if [ "${OS_Min_Vers}" -ge 12 ]; then echo "\nNOTE: You need to provide your local Mac password again here in order to give the printing system access to your credentials.\n" - security set-internet-password-partition-list -S "apple-tool:,apple:" -s "${PrintServer}" + security set-internet-password-partition-list -S "apple-tool:,apple:" -s "${PrintServer}" > /dev/null fi sudo cupsenable "${QueueName}" sudo cupsaccept "${QueueName}" + sudo launchctl stop org.cups.cupsd + sudo launchctl start org.cups.cupsd fi # Set correct paper size and enable the duplexer option -- 2.30.2