summaryrefslogtreecommitdiffstats
path: root/fuse/build/fuse.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'fuse/build/fuse.SlackBuild')
-rwxr-xr-xfuse/build/fuse.SlackBuild16
1 files changed, 16 insertions, 0 deletions
diff --git a/fuse/build/fuse.SlackBuild b/fuse/build/fuse.SlackBuild
index 2489bb62..411371f6 100755
--- a/fuse/build/fuse.SlackBuild
+++ b/fuse/build/fuse.SlackBuild
@@ -217,6 +217,13 @@ else
make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log
fi
+# Move the rc script to the correct place and location (2.6.x and later):
+if [ -f $PKG/etc/init.d/fuse ]; then
+ mkdir -p $PKG/etc/rc.d
+ mv $PKG/etc/init.d/fuse $PKG/etc/rc.d/rc.fuse
+ chmod 754 $PKG/etc/rc.d/rc.fuse
+ rmdir $PKG/etc/init.d || true
+fi
# Add this to the doinst.sh
! [ -d $PKG/install ] && mkdir -p $PKG/install
@@ -228,6 +235,15 @@ cat <<-EEOOTT >> $PKG/install/doinst.sh
chmod $BINPERM usr/bin/fusermount
+ # Update rc.local so that fuse will be initialized properly
+ if ! grep "rc.fuse" etc/rc.d/rc.local 1>/dev/null 2>&1 ; then
+ cat <<_EOM_ >> etc/rc.d/rc.local
+ if [ -x /etc/rc.d/rc.fuse ]; then
+ echo "Starting FUSE support: /etc/rc.d/rc.fuse start"
+ /etc/rc.d/rc.fuse start
+ fi
+ _EOM_
+ fi
EEOOTT