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

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