hi ya bill

try putting that stuff in the autofs startup script
/etc/rc.d/init.d/autofs


case "$1" in
  start)
        #
-->>>   if [ $HOST = $foo ]; then
-->>>     cp /etc/autofs/auto.foo /etc/auto.misc
-->>>   else
-->>>     cp /etc/autofs/auto.default /etc/auto.misc
-->>>   fi
        #
        # Check if the automounter is already running?
        if [ ! -f /var/lock/subsys/automount ]; then
            echo 'Starting automounter: '
            getmounts | sh
            touch /var/lock/subsys/automount
        fi
        ;;
  stop)
        kill -TERM $(/sbin/pidof /usr/sbin/automount)
        rm -f /var/lock/subsys/automount
        ;;


have fun
alvin

> Ok, I have not delved too deep into the documentation, but i have yet to
> fond what I am looking for (oh, for time to spare ;^).
> 
> I need to do something like(in auto.whatever):
> if $HOST=$foo:  user  $HOST:/home/user
> if $HOST!=$foo:       user    $HOST:/auto/home/user
> 
> Is this possible for the current implementation (v3)?
> If not, how difficult would it be to put it in for v4?
> 
> 
> Thanks,
> 
> Bill Anderson
> 

Reply via email to