source: trunk/debathena/config/cupsys-config/debian/debathena-cupsys-config.init @ 25317

Revision 25317, 1.0 KB checked in by jdreed, 13 years ago (diff)
In cupsys-config: * Stop BrowsePolling and just add the mitprint printer. Remove any printers added by cluster-cups-config at upgrade time * Replace/Conflict/Provide debathena-cluster-cups-config * Bump standards-version
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3### BEGIN INIT INFO
4# Provides:          debathena-cupsys-config
5# Required-Start:    cups $remote_fs
6# Required-Stop:     cups $remote_fs
7# Should-Start:      $local_fs $network
8# Default-Start:     2 3 4 5
9# Default-Stop:      0 1 6
10# Short-Description: CUPS configuration
11# Description:       Ensure printers exist
12### END INIT INFO
13
14. /lib/lsb/init-functions
15
16case "$1" in
17  start)
18    if [ -f /var/lib/debathena-cupsys-config-reconfigure_required ]; then
19      log_action_msg "Adding MIT printers"
20      nologin=0
21      if [ ! -f /var/run/athena-nologin ]; then
22        touch /var/run/athena-nologin
23        nologin=1
24      fi
25      if /usr/lib/debathena-cupsys-config/configure-athena-printers add; then
26        rm -f /var/lib/debathena-cupsys-config-reconfigure_required
27        log_end_msg 0
28      else
29        log_end_msg 1
30      fi
31      [ $nologin -eq 1 ] && rm /var/run/athena-nologin
32    fi
33    ;;
34  stop|restart|reload|force-reload|status)
35    exit 0
36    ;;
37  *)
38    log_action_msg "Usage: /etc/init.d/debathena-cupsys-config {start}"
39    exit 1
40    ;;
41esac
42exit 0
Note: See TracBrowser for help on using the repository browser.