From 1a20022a1cdd510f50bff3f27f0c81889235e8cb Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 5 Feb 2007 15:31:09 +0000 Subject: Handle the new fuse RC script properly --- fuse/build/fuse.SlackBuild | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'fuse') 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 -- cgit v1.2.3-80-g2a13