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 =/
8
author "Dmitrijs Ledkovs <xnox@ubuntu.com>"
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
19
test -x /usr/bin/fastboot || exit 0
20
test -n "`/usr/bin/fastboot devices`" || exit 0
21
test -f /usr/share/acpi-support/power-funcs || exit 0
22
. /usr/share/acpi-support/power-funcs
26
test -n "$XAUTHORITY" && exit 0
27
test "$user" = "lightdm" && exit 0
29
sudo -u $user DISPLAY="$DISPLAY" usb-creator-gtk --fastboot