source: trunk/debathena/config/reactivate/debian/policy-rc.d @ 24198

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
3if [ "--daemons" = "$1" ]; then
4    echo cups cupsys
5    exit
6fi
7
8case "$2" in
9    \(*\))
10        exit 101
11        ;;
12esac
13
14# If nobody's logged in, follow the default policy
15if ! [ -e /var/run/athena-login ]; then
16    exit 0
17elif [ -e /ClusterLogin ]; then
18    case "$1" in
19        cups|cupsys)
20            exit 0
21            ;;
22        *)
23            exit 101
24            ;;
25    esac
26else
27    case "$1" in
28        cups|cupsys)
29            exit 101
30            ;;
31        *)
32            exit 0
33            ;;
34    esac
35fi
Note: See TracBrowser for help on using the repository browser.