diff options
author | Eric Hameleers <alien@slackware.com> | 2007-02-05 15:31:09 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-02-05 15:31:09 +0000 |
commit | 1a20022a1cdd510f50bff3f27f0c81889235e8cb (patch) | |
tree | eb23e0891e2d23f9f8ec4af650c795c142823282 /fuse | |
parent | 18e70168b5954931777a6d526badc8b86e90ae42 (diff) | |
download | asb-1a20022a1cdd510f50bff3f27f0c81889235e8cb.tar.gz asb-1a20022a1cdd510f50bff3f27f0c81889235e8cb.tar.xz |
Handle the new fuse RC script properly
Diffstat (limited to 'fuse')
-rwxr-xr-x | fuse/build/fuse.SlackBuild | 16 |
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 |