~ubuntu-branches/ubuntu/oneiric/cryptsetup/oneiric

« back to all changes in this revision

Viewing changes to debian/cryptdisks-enable.upstart

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-09-17 00:04:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090917000400-pydbz7lwo3jw37xf
Tags: 2:1.0.6+20090405.svn49-1ubuntu3
debian/cryptdisks-enable.upstart: add upstart job to enable encrypted
disks once we've finished probing for udev devices, so that mountall
can use them.  LP: #430496.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# cryptdisks - enable encrypted block devices
 
2
#
 
3
# This is a bit of a kludge, we should do this per-block device in a udev
 
4
# rule.  But this should work for now.
 
5
 
 
6
description     "enable encrypted block devices"
 
7
 
 
8
start on stopped udevtrigger
 
9
 
 
10
task
 
11
 
 
12
script
 
13
    . /lib/cryptsetup/cryptdisks.functions
 
14
 
 
15
    case "$CRYPTDISKS_ENABLE" in
 
16
    [Nn]*)
 
17
        exit 1
 
18
        ;;
 
19
    esac
 
20
 
 
21
    INITSTATE="sad"
 
22
    do_start
 
23
end script