-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogoutScript.sh
More file actions
executable file
·35 lines (25 loc) · 958 Bytes
/
Copy pathlogoutScript.sh
File metadata and controls
executable file
·35 lines (25 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
#
# This is a default logout script used as a launchpad for startup scripts
### Properties ###
# Basic default variables used in providing launchpad functionality
# This var stores the file path of the main login script.
# This is determined by parsing for the specified LoginHook
scriptPath="$(defaults read com.apple.loginwindow LogoutHook)"
scriptPath=${scriptPath%/logoutScript.sh}
#
#_____________________### Script Source Code ####________________________
# Variables #############################################################
# #
# Use this area to store variables needed to run external scripts below #
# #
# #
# #
#########################################################################
# External Scripts #
# Examples :
# $scriptPath/externalScript.sh # // Run as root
# /usr/bin/su $1 $scriptPath/externalScript.sh # // Run as logged-in user
#
#
exit 0