#!/bin/sh #description "start udisks-automounter to automount and notify vdr" #env DISPLAY=:1 #export DISPLAY . /etc/init.d/rc.functions case "$1" in start) echo "Starting udisks-automounter" exec udisks-glue -c /etc/udisks-glue/config --foreground check_status ;; stop) echo "Stopping udisks-automounter" killall udisks-glue || /bin/true check_status ;; restart) $0 stop $0 start ;; init) start=1 after=dbus ;; *) echo "Usage $0 {start | stop | restart}" >&2 exit 1 esac