udisks: dont start per systemd, let dbus do this. remove slow mounting script, needs to be reworked

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-06 11:28:57 +02:00
parent e8b5821c70
commit 82f3b188c7
4 changed files with 1 additions and 64 deletions

View File

@ -48,11 +48,5 @@ PKG_CONFIGURE_OPTS_TARGET="--datadir=/usr/share \
post_makeinstall_target() {
rm -rf $INSTALL/etc/profile.d
mkdir -p $INSTALL/lib/systemd
cp -P $PKG_DIR/scripts/udisks-mount-disks $INSTALL/lib/systemd
}
post_install() {
enable_service udisks-mount-disks.service
rm -rf $INSTALL/lib/udev/rules.d
}

View File

@ -1,40 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
# automount internal disks
drive_dump () {
udisks --dump | tr -d ' ' | grep 'device-file:' | cut -d ':' -f2
}
show_info () {
udisks --show-info $2 | grep "$1:" | tr -d ' ' | cut -d ":" -f2
}
for DEVICE in `drive_dump`; do
REMOVABLE="`show_info "removable" $DEVICE`"
MOUNTED="`show_info "is mounted" $DEVICE`"
USAGE="`show_info "usage" $DEVICE`"
if [ "$REMOVABLE" = "0" -a "$MOUNTED" = "0" -a "$USAGE" = "filesystem" ]; then
udisks --mount "$DEVICE" >/dev/null
fi
done

View File

@ -1,9 +0,0 @@
[Unit]
Description=Mount internal disks
[Service]
ExecStart=/lib/systemd/udisks-mount-disks
Type=oneshot
[Install]
WantedBy=remote-fs.target

View File

@ -1,8 +0,0 @@
[Unit]
Description=Disk Manager
Documentation=man:udisks(8)
[Service]
Type=dbus
BusName=org.freedesktop.UDisks
ExecStart=/usr/lib/udisks/udisks-daemon