# HG changeset patch # User Pascal Bellard # Date 1290070569 -3600 # Node ID a6137e640e0141e1fc1ed4a42c36070056f6184c # Parent 117d9c496784c42a03dc843edd1ab4c78a333d24 autofs: add /etc/init.d/autofs diff -r 117d9c496784 -r a6137e640e01 autofs/receipt --- a/autofs/receipt Thu Nov 18 01:05:32 2010 +0000 +++ b/autofs/receipt Thu Nov 18 09:56:09 2010 +0100 @@ -8,6 +8,7 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.kernel.org/pub/linux/daemons/autofs/v5" WGET_URL="$WEB_SITE/$TARBALL" +DEPENDS="linux-autofs" TAGS="filesystem" # Rules to configure and make the package. @@ -29,3 +30,9 @@ cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/lib $fs/usr } + +# Pre and post install commands for Tazpkg. +post_install() +{ + mkdir -p $1/mnt/auto 2> /dev/null +} diff -r 117d9c496784 -r a6137e640e01 autofs/stuff/etc/auto.master --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autofs/stuff/etc/auto.master Thu Nov 18 09:56:09 2010 +0100 @@ -0,0 +1,1 @@ +/mnt/auto /etc/auto.misc --timeout=60 diff -r 117d9c496784 -r a6137e640e01 autofs/stuff/etc/auto.misc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autofs/stuff/etc/auto.misc Thu Nov 18 09:56:09 2010 +0100 @@ -0,0 +1,2 @@ +floppy -fstype=auto,rw,sync :/dev/fd0 +cdrom -fstype=iso9660,ro :/dev/cdrom diff -r 117d9c496784 -r a6137e640e01 autofs/stuff/etc/init.d/autofs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autofs/stuff/etc/init.d/autofs Thu Nov 18 09:56:09 2010 +0100 @@ -0,0 +1,57 @@ +#!/bin/sh +# /etc/init.d/autofs : Start, stop and restart automounter on SliTaz, at +# boot time or with the command line. +# +# To start automounter at boot time, just put dropbear in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=Automount +DESC="Automount server" +DAEMON=/usr/sbin/automount +OPTIONS=$AUTOMOUNT_OPTIONS +PIDFILE=/var/run/automount.pid + +case "$1" in + start) + if active_pidfile $PIDFILE automount ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + modprobe autofs4 + $DAEMON $OPTIONS + status + ;; + stop) + if ! active_pidfile $PIDFILE automount ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + rmmod autofs4 + status + ;; + restart) + if ! active_pidfile $PIDFILE automount ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r 117d9c496784 -r a6137e640e01 linux-autofs/receipt --- a/linux-autofs/receipt Thu Nov 18 01:05:32 2010 +0000 +++ b/linux-autofs/receipt Thu Nov 18 09:56:09 2010 +0100 @@ -18,7 +18,7 @@ mkdir -p $fs/$path $fs/etc export src export _pkg - $src/slitaz/list_modules.sh fs/autofs | while read module; do + $src/slitaz/list_modules.sh fs/autofs4 | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir diff -r 117d9c496784 -r a6137e640e01 linux/stuff/linux-2.6.36-slitaz.config --- a/linux/stuff/linux-2.6.36-slitaz.config Thu Nov 18 01:05:32 2010 +0000 +++ b/linux/stuff/linux-2.6.36-slitaz.config Thu Nov 18 09:56:09 2010 +0100 @@ -3185,7 +3185,7 @@ # CONFIG_JFS_STATISTICS is not set CONFIG_FS_POSIX_ACL=y CONFIG_XFS_FS=y -# CONFIG_XFS_QUOTA is not set +CONFIG_XFS_QUOTA=y CONFIG_XFS_POSIX_ACL=y # CONFIG_XFS_RT is not set # CONFIG_XFS_DEBUG is not set @@ -3206,8 +3206,8 @@ # CONFIG_QFMT_V1 is not set # CONFIG_QFMT_V2 is not set CONFIG_QUOTACTL=y -CONFIG_AUTOFS_FS=m -# CONFIG_AUTOFS4_FS is not set +# CONFIG_AUTOFS_FS is not set +CONFIG_AUTOFS4_FS=m CONFIG_FUSE_FS=y CONFIG_CUSE=m @@ -3304,7 +3304,8 @@ CONFIG_NFS_ACL_SUPPORT=y CONFIG_NFS_COMMON=y CONFIG_SUNRPC=y -# CONFIG_RPCSEC_GSS_KRB5 is not set +CONFIG_SUNRPC_GSS=m +CONFIG_RPCSEC_GSS_KRB5=m # CONFIG_RPCSEC_GSS_SPKM3 is not set # CONFIG_SMB_FS is not set # CONFIG_CEPH_FS is not set