Revision 24198,
533 bytes
checked in by broder, 15 years ago
(diff) |
In reactivate:
* Fix the policy-rc.d to actually allow for restarting cups and cupsys
inside the chroot. Apparently pipes can delineate patterns, but don't
mean anything within a single pattern, such as the one one pattern
that results from variable expansion.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | if [ "--daemons" = "$1" ]; then |
---|
4 | echo cups cupsys |
---|
5 | exit |
---|
6 | fi |
---|
7 | |
---|
8 | case "$2" in |
---|
9 | \(*\)) |
---|
10 | exit 101 |
---|
11 | ;; |
---|
12 | esac |
---|
13 | |
---|
14 | # If nobody's logged in, follow the default policy |
---|
15 | if ! [ -e /var/run/athena-login ]; then |
---|
16 | exit 0 |
---|
17 | elif [ -e /ClusterLogin ]; then |
---|
18 | case "$1" in |
---|
19 | cups|cupsys) |
---|
20 | exit 0 |
---|
21 | ;; |
---|
22 | *) |
---|
23 | exit 101 |
---|
24 | ;; |
---|
25 | esac |
---|
26 | else |
---|
27 | case "$1" in |
---|
28 | cups|cupsys) |
---|
29 | exit 101 |
---|
30 | ;; |
---|
31 | *) |
---|
32 | exit 0 |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.