summaryrefslogtreecommitdiffstats
path: root/data/hal-iphone-setup
diff options
context:
space:
mode:
authorGravatar Matt Colyer2009-03-26 09:18:31 -0700
committerGravatar Matt Colyer2009-03-26 09:18:31 -0700
commit1496822b6be9857a16e8e7135c42927b8b348e0c (patch)
treea48a1c974f3f8d86b2c22529ea5cbe6f6e8fb2a0 /data/hal-iphone-setup
parent910f6639b54f46ee62dc0038401b1949944c00b6 (diff)
downloadifuse-1496822b6be9857a16e8e7135c42927b8b348e0c.tar.gz
ifuse-1496822b6be9857a16e8e7135c42927b8b348e0c.tar.bz2
Make automounting actually work. [#3 state:resolved]
Diffstat (limited to 'data/hal-iphone-setup')
-rwxr-xr-xdata/hal-iphone-setup22
1 files changed, 0 insertions, 22 deletions
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