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'
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'
--- /dev/null
+# 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
--- /dev/null
+#!/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 ${?}
+
+}