From a8bfe6abb693150e9ee01ea6e8d672fc074d1f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Sep 2018 00:19:18 +0200 Subject: New multiconfig design --- mpd-music/music.init | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100755 mpd-music/music.init (limited to 'mpd-music/music.init') diff --git a/mpd-music/music.init b/mpd-music/music.init deleted file mode 100755 index 4a5c654..0000000 --- a/mpd-music/music.init +++ /dev/null @@ -1,34 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - use logger -} - -mounted() { - mount | grep -q ' /music ' -} - -status() { - mounted -} - -start() { - if mounted; then - einfo "Already mounted" - return - fi - - mkdir -p /music - sshfs -o rw,allow_other root@10.8.2.1:/data/music /music -} - -stop() { - if ! mounted; then - ewarn "Already not mounted" - return - fi - - fusermount -u /music -} -- cgit v1.2.3