Revision 23573,
559 bytes
checked in by broder, 16 years ago
(diff) |
In reactivate:
* Instead of generating policy-rc.d at login time, have a general
policy-rc.d that works both inside and outside of the chroot. This
fixes a potential issue if there's a reboot during a login session.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | daemons="cups|cupsys" |
---|
4 | |
---|
5 | if [ "--daemons" = "$1" ]; then |
---|
6 | IFS='|' |
---|
7 | echo $daemons |
---|
8 | exit |
---|
9 | fi |
---|
10 | |
---|
11 | case "$2" in |
---|
12 | \(*\)) |
---|
13 | exit 101 |
---|
14 | ;; |
---|
15 | esac |
---|
16 | |
---|
17 | # If nobody's logged in, follow the default policy |
---|
18 | if ! [ -e /var/run/athena-login ]; then |
---|
19 | exit 0 |
---|
20 | elif [ -e /ClusterLogin ]; then |
---|
21 | case "$1" in |
---|
22 | $daemons) |
---|
23 | exit 0 |
---|
24 | ;; |
---|
25 | *) |
---|
26 | exit 101 |
---|
27 | ;; |
---|
28 | esac |
---|
29 | else |
---|
30 | case "$1" in |
---|
31 | $daemons) |
---|
32 | exit 101 |
---|
33 | ;; |
---|
34 | *) |
---|
35 | exit 0 |
---|
36 | ;; |
---|
37 | esac |
---|
38 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.