/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos.prerm

  • Committer: Teddy Hogeborn
  • Date: 2008-09-26 04:54:35 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080926045435-0thnnqops1kzclag
* debian/mandos-client.postinst: Change home directory to
                                 "/nonexistent".
* debian/mandos.postinst: - '' -

* plugin-runner.c (main): Bug fix: Block signals while modifying
                          "plugin_list".

* plugins.d/usplash.c (usplash_write): New function.
  (main): Use "usplash_write" to write "INPUTQUIET" command.  Also
          write "TIMEOUT 0" before it, and write "TIMEOUT 15" and
          "PULSATE" if starting a new usplash process.  Kill old
          usplash before forking.  Bug fix: do setuid(geteuid()) to
          preserve genuine rootness.  Better interrupted/error logic
          overall.

* debian/mandos-client.lintian-overrides: Ignore setuid
                                          "plugins.d/usplash".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
 
1
#! /bin/sh
2
2
# prerm script for mandos
3
3
#
4
4
# see: dh_installdeb(1)
6
6
set -e
7
7
 
8
8
# summary of how this script can be called:
9
 
#        * <prerm> 'remove'
10
 
#        * <old-prerm> 'upgrade' <new-version>
11
 
#        * <new-prerm> 'failed-upgrade' <old-version>
12
 
#        * <conflictor's-prerm> 'remove' 'in-favour' <package> <new-version>
13
 
#        * <deconfigured's-prerm> 'deconfigure' 'in-favour'
14
 
#          <package-being-installed> <version> 'removing'
 
9
#        * <prerm> `remove'
 
10
#        * <old-prerm> `upgrade' <new-version>
 
11
#        * <new-prerm> `failed-upgrade' <old-version>
 
12
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
 
13
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
 
14
#          <package-being-installed> <version> `removing'
15
15
#          <conflicting-package> <version>
16
16
# for details, see /usr/share/doc/packaging-manual/
17
17
 
18
18
case "$1" in
19
19
    remove|deconfigure)
20
 
        invoke-rc.d mandos stop || :
 
20
        if [ -x /etc/init.d/mandos ]; then
 
21
                if [ -x /usr/sbin/invoke-rc.d ]; then
 
22
                        invoke-rc.d mandos stop
 
23
                else
 
24
                        /etc/init.d/mandos stop
 
25
                fi
 
26
        fi
21
27
        ;;
22
28
    upgrade|failed-upgrade)
23
29
        ;;
24
30
    *)
25
 
        echo "prerm called with unknown argument '$1'" >&2
 
31
        echo "prerm called with unknown argument \`$1'" >&2
26
32
        exit 0
27
33
    ;;
28
34
esac