Last change
on this file since 627 was 334, checked in by Nicholas Riley, 17 years ago |
Workaround for Pester 1.0 failing with active alarms on sleep.
|
File size:
378 bytes
|
Line | |
---|
1 | #!/bin/zsh -ef
|
---|
2 | #
|
---|
3 | # rc.wakeup
|
---|
4 | #
|
---|
5 | # script to be executed on wakeup by the PesterSleepFixer daemon
|
---|
6 |
|
---|
7 | [[ -d /tmp/PesterSleepFixer ]] || exit 0
|
---|
8 |
|
---|
9 | cd /tmp/PesterSleepFixer
|
---|
10 |
|
---|
11 | for user in *(N); do
|
---|
12 | /usr/bin/su - $user -c "/Library/StartupItems/PesterSleepFixer/launch -bi net.sabi.Pester"
|
---|
13 | /usr/bin/logger -t $0 "restarted Pester on wake for $user"
|
---|
14 | done
|
---|
15 |
|
---|
16 | /bin/rm -rf /tmp/PesterSleepFixer
|
---|
Note:
See
TracBrowser
for help on using the repository browser.