Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1279)

Unified Diff: libmtp.sh

Issue 2364793002: Revert "Uprev libmtp to 1.1.12" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libmtp.pc ('k') | libmtp.pc.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libmtp.sh
diff --git a/libmtp.sh b/libmtp.sh
deleted file mode 100644
index b149413e79f4fcc8d4a2ba596a9eea939ff36763..0000000000000000000000000000000000000000
--- a/libmtp.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# Lifts a plugged in MTP device to user space and
-# optionally runs a client program.
-# Written by Linus Walleij 2006, based on the "usbcam"
-# script by Nalin Dahyabhai.
-DEVICEOWNER=root
-DEVICEPERMS=666
-
-# Special quirk for SuSE systems using "resmgr"
-# (see http://rechner.lst.de/~okir/resmgr/)
-if [ -f /sbin/resmgr ]
-then
- /sbin/resmgr "${ACTION}" "${DEVICE}" desktop usb
- exit 0
-fi
-
-# This is for most other distributions
-if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
-then
- # New code, using lock files instead of copying /dev/console permissions
- # This also works with non-gdm logins (e.g. on a virtual terminal)
- # Idea and code from Nalin Dahyabhai <nalin@redhat.com>
- if [ "x$DEVICEOWNER" = "xCONSOLE" ]
- then
- if [ -f /var/run/console/console.lock ]
- then
- DEVICEOWNER=`cat /var/run/console/console.lock`
- elif [ -f /var/run/console.lock ]
- then
- DEVICEOWNER=`cat /var/run/console.lock`
- elif [ -f /var/lock/console.lock ]
- then
- DEVICEOWNER=`cat /var/lock/console.lock`
- else
- DEVICEOWNER="nobody"
- DEVICEPERMS="666"
- fi
- fi
- if [ -n "$DEVICEOWNER" ]
- then
- chmod 0000 "${DEVICE}"
- chown "${DEVICEOWNER}" "${DEVICE}"
- chmod "${DEVICEPERMS}" "${DEVICE}"
- fi
-fi
« no previous file with comments | « libmtp.pc ('k') | libmtp.pc.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698