]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
committing changes in /etc after emerge run
authorroot <root@helga.brehm-online.com>
Sat, 7 Jan 2017 09:45:39 +0000 (10:45 +0100)
committerroot <root@helga.brehm-online.com>
Sat, 7 Jan 2017 09:45:39 +0000 (10:45 +0100)
Package changes:
+sys-fs/fuse-2.9.7

.etckeeper
fuse.conf [new file with mode: 0644]
init.d/fuse [new file with mode: 0755]

index 2c3355238205dbc0876a34c8d9072b56908c8454..fc72d74532f58078071e709d99a51cde55581802 100755 (executable)
@@ -1509,6 +1509,7 @@ maybe chown 'frank' 'ftp-backup/id_rsa.pub'
 maybe chgrp 'users' 'ftp-backup/id_rsa.pub'
 maybe chmod 0644 'ftp-backup/id_rsa.pub'
 maybe chmod 0644 'ftpusers'
+maybe chmod 0644 'fuse.conf'
 maybe chmod 0644 'gai.conf'
 maybe chmod 0644 'genkernel.conf'
 maybe chmod 0644 'gentoo-release'
@@ -1652,6 +1653,7 @@ maybe chmod 0755 'init.d/dmeventd'
 maybe chmod 0755 'init.d/fail2ban'
 maybe chmod 0755 'init.d/fancontrol'
 maybe chmod 0755 'init.d/fsck'
+maybe chmod 0755 'init.d/fuse'
 maybe chmod 0755 'init.d/git-daemon'
 maybe chmod 0755 'init.d/gpm'
 maybe chmod 0755 'init.d/hostname'
diff --git a/fuse.conf b/fuse.conf
new file mode 100644 (file)
index 0000000..cb6c631
--- /dev/null
+++ b/fuse.conf
@@ -0,0 +1,9 @@
+# Set the maximum number of FUSE mounts allowed to non-root users.
+# The default is 1000.
+#
+#mount_max = 1000
+
+# Allow non-root users to specify the 'allow_other' or 'allow_root'
+# mount options.
+#
+#user_allow_other
diff --git a/init.d/fuse b/init.d/fuse
new file mode 100755 (executable)
index 0000000..6c99929
--- /dev/null
@@ -0,0 +1,35 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MOUNTPOINT=/sys/fs/fuse/connections
+
+depend() {
+       need localmount
+}
+
+start() {
+
+       ebegin "Starting fuse"
+       if ! grep -qw fuse /proc/filesystems; then
+               modprobe fuse >/dev/null 2>&1 || eerror $? "Error loading fuse module"
+       fi
+       if grep -qw fusectl /proc/filesystems && \
+          ! grep -qw $MOUNTPOINT /proc/mounts; then
+               mount -t fusectl none $MOUNTPOINT >/dev/null 2>&1 || \
+                       eerror $? "Error mounting control filesystem"
+       fi
+       eend ${?}
+       
+}
+
+stop() {
+
+       ebegin "Stopping fuse"
+       if grep -qw $MOUNTPOINT /proc/mounts; then
+               umount $MOUNTPOINT >/dev/null 2>&1 || \
+                       eerror $? "Error unmounting control filesystem"
+       fi
+       eend ${?}
+       
+}