~ubuntu-branches/ubuntu/saucy/usb-creator/saucy

« back to all changes in this revision

Viewing changes to debian/usb-creator-gtk.upstart

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-03-20 09:01:26 UTC
  • Revision ID: package-import@ubuntu.com-20130320090126-z5sjkfk0etyxu9eh
Tags: 0.2.47
Purge the upstart job.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# usb-creator-gtk
2
 
 
3
 
# This really should be enchanced user session job
4
 
# and not a system one!
5
 
# Then the hacks to get DISPLAY & user can go away.
6
 
# Also the udev test are ugly =/
7
 
 
8
 
author "Dmitrijs Ledkovs <xnox@ubuntu.com>"
9
 
 
10
 
start on (
11
 
      usb-device-added ID_VENDOR_ID=18d1 ID_MODEL_ID=4e40 or
12
 
      usb-device-added ID_VENDOR_ID=18d1 ID_MODEL_ID=d001   
13
 
)
14
 
 
15
 
script
16
 
test -f /usr/share/acpi-support/power-funcs || exit 0
17
 
. /usr/share/acpi-support/power-funcs
18
 
 
19
 
getXconsole
20
 
if [ x"$XAUTHORITY" != x"" ]; then
21
 
        sudo -u $user DISPLAY="$DISPLAY" usb-creator-gtk --fastboot
22
 
fi
23
 
end script