+ sed to rewrite any legacy 'Quit' or Restart' cmd

This commit is contained in:
wattsy74
2021-12-03 16:25:50 +00:00
parent c43bdfd31b
commit 486c7bdf0f
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
# LAUNCH DEPNOTIFY FOR ENROLMENT
sed -i -e 's/Quit/Q*uit/' /var/tmp/depnotify.log
sed -i -e 's/Restart/R*estart/' /var/tmp/depnotify.log
sudo -u $(stat -f "%Su" /dev/console) /bin/sh <<'END'
open -a /Applications/Utilities/DEPNotify.app --args -fullScreen

View File

@@ -1 +1,3 @@
sed -i -e 's/Quit/Q*uit/' /var/tmp/depnotify.log
sed -i -e 's/Restart/R*estart/' /var/tmp/depnotify.log
bash -c 'osascript -e "tell application \"DEPNotify\"" -e "activate" -e "end tell"'