summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-02-12 00:32:50 +0100
committerJavier <dev.git@javispedro.com>2015-02-12 00:32:50 +0100
commit91d30f08c972bf9e9c9a4d39574b25a5e3a94c78 (patch)
treee8c6e154bede1476299bad4c9d3b7ddae94c2119 /scripts
parentae15bb7d1da8174707367096ac135382a933f2f0 (diff)
downloadvolumefs-91d30f08c972bf9e9c9a4d39574b25a5e3a94c78.tar.gz
volumefs-91d30f08c972bf9e9c9a4d39574b25a5e3a94c78.zip
add gentoo init file
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/volumefs.init21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/volumefs.init b/scripts/volumefs.init
new file mode 100755
index 0000000..dc80eed
--- /dev/null
+++ b/scripts/volumefs.init
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+
+description="Mount /Volumes and /Users."
+
+depend()
+{
+ need dbus
+}
+
+start()
+{
+ /usr/sbin/volumesfs -o allow_other /Volumes
+ /usr/sbin/usersfs -o allow_other /Users
+}
+
+stop()
+{
+ fusermount -u /Volumes || true
+ fusermount -u /Users || true
+}
+