~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/initscripts/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen, Petter Reinholdtsen, Kel Modderman
  • Date: 2009-07-27 21:12:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090727211227-lxxqgakhpy83x5on
Tags: 2.87dsf-2
[ Petter Reinholdtsen ]
* Start generating MD5 sum files using dh_md5sum, build-depend
  on debhelper for this.  Use compat level 1 to get it to process
  debian/tmp/.
* Drop the stop calls for K11mountoverflowtmp in runlevels 0 and 6.
  The umountfs script will take care of that task (Closes: 526733).
* Remove setting of unused makefile variable LIBC6 from rules.
* Move copyright, preinst, postinst and postrm files for initscripts
  and sysv-rc to debian/ to make the build system closer to other
  source packages.
* Add the sysv-rc saveconfig script to /usr/share/doc/sysv-rc/
  to provide an example.
* Let sysv-rc depend on insserv (>= 1.12.0-10) to activate
  dependency based boot sequencing by default.

[ Kel Modderman ]
* Allow forcefsck on kernel cmdline to have same effect as touching
  /forcefsck in checkfs.sh and checkroot.sh. (Closes: #529498)
* Also allow fastboot on kernel cmdline to have same effect as touching
  /fastboot in checkfs.sh and checkroot.sh.
* Do not use brace expansion in debian/rules and remove need for
  setting SHELL to /bin/bash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
#
3
 
# initscripts postrm
4
 
#
5
 
 
6
 
set -e
7
 
 
8
 
case "$1" in
9
 
  purge)
10
 
        #
11
 
        # Remove abandoned conffiles
12
 
        #
13
 
        rm -f \
14
 
                /etc/init.d/bootclean \
15
 
                /etc/init.d/bootclean.dpkg-old \
16
 
                /etc/init.d/bootclean.sh \
17
 
                /etc/init.d/bootclean.sh.dpkg-old
18
 
 
19
 
        #
20
 
        # Remove configuration files
21
 
        #
22
 
        rm -f \
23
 
                /etc/default/rcS \
24
 
                /etc/nologin \
25
 
                /etc/motd.tail \
26
 
                /etc/motd.static \
27
 
                /etc/motd
28
 
 
29
 
        #
30
 
        # Remove state files
31
 
        #
32
 
        rm -f /var/lib/initscripts/nologin
33
 
 
34
 
        #
35
 
        # Remove run time state files
36
 
        #
37
 
        rm -f /var/run/motd
38
 
 
39
 
        #
40
 
        # Remove log files
41
 
        #
42
 
        rm -f \
43
 
                /var/log/dmesg \
44
 
                /var/log/boot \
45
 
                /var/log/fsck/checkroot \
46
 
                /var/log/fsck/checkfs
47
 
 
48
 
        # Remove rc symlinks ?
49
 
        # Remove /dev/pts and /dev/shm ?
50
 
        ;;
51
 
esac
52
 
 
53
 
: