From 1496822b6be9857a16e8e7135c42927b8b348e0c Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Thu, 26 Mar 2009 09:18:31 -0700 Subject: Make automounting actually work. [#3 state:resolved] --- data/30-ifuse.fdi | 54 --------------------------------------------------- data/Makefile.am | 4 ---- data/hal-iphone-setup | 22 --------------------- 3 files changed, 80 deletions(-) delete mode 100644 data/30-ifuse.fdi delete mode 100644 data/Makefile.am delete mode 100755 data/hal-iphone-setup (limited to 'data') diff --git a/data/30-ifuse.fdi b/data/30-ifuse.fdi deleted file mode 100644 index 51ea028..0000000 --- a/data/30-ifuse.fdi +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - block - storage - hal-iphone-setup - storage - usb - disk - true - true - false - false - false - true - true - iPhone - Apple Computer, Inc. - /org/freedesktop/Hal/devices/computer - @info.udi:linux.device_file - @info.parent:info.udi - - - - - - - - - camera - block - volume - volume - hal-iphone-setup - @info.parent:linux.device_file - @info.parent:info.udi - true - true - false - fuse.ifuse - allow_other - filesystem - iPhone - - - - - - - - diff --git a/data/Makefile.am b/data/Makefile.am deleted file mode 100644 index f9302c4..0000000 --- a/data/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -freedesktopfdidir = $(prefix)/share/hal/fdi/information/20thirdparty/ -freedesktopfdi_DATA = 30-ifuse.fdi - -bin_SCRIPTS = hal-iphone-setup diff --git a/data/hal-iphone-setup b/data/hal-iphone-setup deleted file mode 100755 index a6cffe6..0000000 --- a/data/hal-iphone-setup +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# -# borrowed from Fedora and modified to apply device major and minor nodes to the iPhone -# - -hal_set () { - if [ -n "$2" ]; then - /usr/bin/hal-set-property --udi "$UDI" --key block.$1 --int "$2" - else - /usr/bin/hal-set-property --udi "$UDI" --key block.$1 --remove - fi -} - -DEVICE_NODE=`hal-get-property --udi "$UDI" --key block.device` - -echo $DEVICE_NODE - -MAJOR=`stat $DEVICE_NODE --format="%t"` -MINOR=`stat $DEVICE_NODE --format="%T"` - -hal_set major 0x$MAJOR -hal_set minor 0x$MINOR -- cgit v1.1-32-gdbae