The system preference provides a graphical interface for scheduling events.
The Power Manager System Preference package is recommended but not required.
Mac OS X 10.3.9 or later is required for this package.
The post installation script installs additional non-essential files.
Line | |
---|---|
1 |
/Library/Application Support/Power Manager/adminAssistant |
The adminAssistant provides a limited set of root level tasks for the System Preference. These tasks include launching the daemon and toggling the security rights for non-administrator users.
If adminAssistant is not installed, or is removed, the System Preference will replace it within the active user's Library; an administrator password will be requested before adminAssistant is replaced.
Power Manager's System Preference can be installed within a user's Library/PreferencePanes to limit the interface to a single user.
This package does not use a preparation script.
The post installation script performs four tasks:
The Help Book link is created to overcome a limitation in the System Preferences. The Help Book should appear automatically and instantly when included in an installed Preference Pane; this is not the case.
Line | |
---|---|
1 |
#!/bin/sh |
2 |
# Part of DssW Power Manager |
3 |
# Copyright (c) 2006 Dragon Systems Software Limited |
4 |
# Support: support@dssw.co.uk |
5 |
# |
6 |
# This script completes the installation process by copying Mac OS X version |
7 |
# dependent files and setting up permissions. |
8 | |
9 |
# Copy the adminAssistant and mark sticky to avoid first run password request |
10 |
if [ -e "$3/Library/PreferencePanes/Power Manager.prefPane/Contents/MacOS/adminAssistant" ]; then |
11 | |
12 |
mkdir -p "/Library/Application Support/Power Manager/" |
13 |
cp "$3/Library/PreferencePanes/Power Manager.prefPane/Contents/MacOS/adminAssistant" "$3/Library/Application Support/Power Manager/" |
14 |
|
15 |
# Change permissions and owner: |
16 |
# -r-sr-xr-x root wheel adminAssistant |
17 |
chown root:wheel "$3/Library/Application Support/Power Manager/adminAssistant" |
18 |
chmod 4555 "$3/Library/Application Support/Power Manager/adminAssistant" |
19 | |
20 |
# adminAssistant is secured by authentication services at runtime |
21 |
|
22 |
echo "Copied adminAssistant to /Library/Application Support/Power Manager/" |
23 | |
24 |
fi |
25 | |
26 |
# Link in the help book; overcomes System Preferences weakness |
27 |
if [ ! -e "$3/Library/Documentation/Help/Power Manager Help" ]; then |
28 |
cd "$3/Library/Documentation/Help" |
29 |
ln -s "$3/Library/PreferencePanes/Power Manager.prefPane/Contents/Resources/Power Manager Help" . |
30 |
fi |