From: root Date: Sat, 7 Jan 2017 09:45:39 +0000 (+0100) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=48160c192e1b8c523313183bd3cdcbbb1c6bbb91;p=config%2Fhelga%2Fetc.git committing changes in /etc after emerge run Package changes: +sys-fs/fuse-2.9.7 --- diff --git a/.etckeeper b/.etckeeper index 2c33552..fc72d74 100755 --- a/.etckeeper +++ b/.etckeeper @@ -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 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 index 0000000..6c99929 --- /dev/null +++ b/init.d/fuse @@ -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 ${?} + +}