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

« back to all changes in this revision

Viewing changes to debian/initscripts/etc/init.d/mountnfs-bootclean.sh

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen
  • Date: 2008-08-12 16:07:50 UTC
  • Revision ID: james.westby@ubuntu.com-20080812160750-65gpyv74vh4qr69w
Tags: 2.86.ds1-61
* Fix typo in rcS(5), proberly->properly (Closes: #484233).  Thanks to
  Julien Danjou for noticing.
* Fix typo in rcS(5), maually->manually (Closes: #493680).  Thanks to
  Xr for noticing.
* Modify runlevel detection code in invoke-rc.d to notice the
  difference between runlevels 0 and 6, and the boot runlevel, to
  make it possible to use invoke-rc.d during boot (Closes: 384509).
* Make sure to call restorecon after mounting tmpfs file systems, to
  set SELinux permissions (Closes: #493679).  Patch from Russell
  Coker.
* Move responsibility of stopping the splash screen process from
  individual init.d scripts to init.d/rc.  This make sure the
  progress calculation reflect reality, and that the splash screen
  is taken down in runlevel 1 (Closes: #431560) and that it stop
  before gdm and kdm (Closes: #422922, #489734).
* Skip error message from checkfs.sh when / is read-only.  Patch
  from Mirek Slugen (Closes: #492214).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
### BEGIN INIT INFO
 
3
# Provides:          mountnfs-bootclean
 
4
# Required-Start:    mountnfs
 
5
# Required-Stop:
 
6
# Default-Start:     S
 
7
# Default-Stop:
 
8
# Short-Description: bootclean after mountnfs.
 
9
# Description:       Clean temporary filesystems after
 
10
#                    network filesystems have been mounted.
 
11
### END INIT INFO
 
12
 
 
13
case "$1" in
 
14
  start|"")
 
15
        # Clean /tmp, /var/lock, /var/run
 
16
        . /lib/init/bootclean.sh
 
17
        ;;
 
18
  restart|reload|force-reload)
 
19
        echo "Error: argument '$1' not supported" >&2
 
20
        exit 3
 
21
        ;;
 
22
  stop)
 
23
        # No-op
 
24
        ;;
 
25
  *)
 
26
        echo "Usage: mountnfs-bootclean.sh [start|stop]" >&2
 
27
        exit 3
 
28
        ;;
 
29
esac
 
30
 
 
31
: