diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2017-11-19 13:51:03 +0100 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2017-12-12 11:05:34 -0600 |
commit | f098518c00c7fd57dd1e70452350525324246256 (patch) | |
tree | e1d1b8ec22c6aa0318ada66512a02927a850558c /app-emulation | |
parent | media-libs/gst-plugins-bad: remove old (diff) | |
download | gentoo-f098518c00c7fd57dd1e70452350525324246256.tar.gz gentoo-f098518c00c7fd57dd1e70452350525324246256.tar.bz2 gentoo-f098518c00c7fd57dd1e70452350525324246256.zip |
app-emulation/spice-vdagent: remove unused init file
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/spice-vdagent/files/spice-vdagent.initd-2 | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 b/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 deleted file mode 100644 index a3194d5c1852..000000000000 --- a/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 +++ /dev/null @@ -1,60 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - after dbus -} - -PIDFILE="/var/run/spice-vdagentd/spice-vdagentd.pid" - -start() { - PORT="${PORT:-/dev/virtio-ports/com.redhat.spice.0}" - DEVICE="${DEVICE:-/dev/uinput}" - - ebegin "Checking for required modules and devices" - - if [[ ! -d /sys/module/uinput ]]; then - modprobe -q uinput - fi - - if [[ ! -d /sys/module/uinput ]]; then - eerror "Module 'uinput' not loaded or not enabled in the kernel" - eend 1 - return 1 - fi - - if [[ ! -c "${PORT}" ]] ; then - eerror "Required virtio port does not exist. Make sure you" - eerror "started the virtual machine with appropriate parameters." - eend 1 - return 1 - fi - eend 0 - - if [[ ! -c ${DEVICE} && -c /dev/input/uinput ]]; then - DEVICE=/dev/input/uinput - fi - - # recreate the directory since /var/run may reside on a ramdisk - mkdir -p /var/run/spice-vdagentd - - # cleanup stalled socket - rm -f /var/run/spice-vdagentd/spice-vdagent-sock - - ebegin "Starting spice VD agent daemon" - start-stop-daemon \ - --start \ - --pidfile "${PIDFILE}" \ - --exec /usr/sbin/spice-vdagentd \ - -- -u "${DEVICE}" ${SPICE_VDAGENT_ARGS} - eend $? -} - -stop() { - ebegin "Stopping spice VD agent daemon" - start-stop-daemon \ - --stop \ - --pidfile "${PIDFILE}" - eend $? -} |