~psusi/ubuntu/utopic/udisks2/fix-standby

« back to all changes in this revision

Viewing changes to debian/local/udisks2-inhibit

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-09-10 11:25:31 UTC
  • Revision ID: package-import@ubuntu.com-20120910112531-qodq1f09m3iuxjf7
Tags: 1.99.0-4git1
Upload current Debian git head, this bug breaks installation images.

debian/local/udisks2-inhibit: Fix crash when /run/udisks2 does not exist
yet. (LP: #1048211)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
# mount a tmpfs over $DIR and place our rule in there, together with the
33
33
# already existing ones; this will guarantee that the file will not
34
34
# accidentally stay around across reboot, etc.
35
 
mkdir /run/udisks2/inhibit-polkit
 
35
mkdir -p /run/udisks2/inhibit-polkit
36
36
mount -t tmpfs tmpfs /run/udisks2/inhibit-polkit
37
37
find "$DIR" -mindepth 1 -exec cp -a '{}' /run/udisks2/inhibit-polkit \;
38
38
echo "$RULE" > /run/udisks2/inhibit-polkit/udisks2-inhibit.pkla