Last change
on this file since 601 was 334, checked in by Nicholas Riley, 17 years ago |
Workaround for Pester 1.0 failing with active alarms on sleep.
|
File size:
502 bytes
|
Line | |
---|
1 | #!/bin/zsh -ef
|
---|
2 | #
|
---|
3 | # rc.sleep
|
---|
4 | #
|
---|
5 | # script to be executed on sleep by the PesterSleepFixer daemon
|
---|
6 |
|
---|
7 | /bin/rm -rf /tmp/PesterSleepFixer
|
---|
8 | /usr/bin/install -dm 600 /tmp/PesterSleepFixer
|
---|
9 | cd /tmp/PesterSleepFixer
|
---|
10 |
|
---|
11 | for user in $(echo 'show State:/Users/ConsoleUser' | scutil | awk '/kCGSSessionUserNameKey/ { print $3; }'); do
|
---|
12 | su - $user -c "/Library/StartupItems/PesterSleepFixer/appswitch -qi net.sabi.Pester" && \
|
---|
13 | /usr/bin/touch $user && \
|
---|
14 | /usr/bin/logger -t $0 "will restart Pester on wake for $user"
|
---|
15 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.