Merge lp:~zyga/lava-master-image-scripts/enable-automount-script into lp:lava-master-image-scripts

Proposed by Zygmunt Krynicki
Status: Merged
Merged at revision: 66
Proposed branch: lp:~zyga/lava-master-image-scripts/enable-automount-script
Merge into: lp:lava-master-image-scripts
Diff against target: 15 lines (+11/-0)
1 file modified
lava-enable-gnome-automount (+11/-0)
To merge this branch: bzr merge lp:~zyga/lava-master-image-scripts/enable-automount-script
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle (community) Approve
Dave Pigott Pending
Review via email: mp+122658@code.launchpad.net

Description of the change

Add the 'lava-enable-gnome-automount' script to keep parity with existing disable script

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Seems sensible, will merge.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'lava-enable-gnome-automount'
2--- lava-enable-gnome-automount 1970-01-01 00:00:00 +0000
3+++ lava-enable-gnome-automount 2012-09-04 11:24:19 +0000
4@@ -0,0 +1,11 @@
5+#!/bin/sh
6+set -e
7+
8+# Prevent gnome from popping up windows
9+if [ -n "$(which dconf)" ]; then
10+ dconf write /org/gnome/desktop/media-handling/automount true
11+ dconf write /org/gnome/desktop/media-handling/automount-open true
12+ echo "GNOME automont is now enabled"
13+else
14+ echo "You don't have dconf binary installed"
15+fi

Subscribers

People subscribed via source and target branches