aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rc.autofs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/rc.autofs')
-rw-r--r--samples/rc.autofs4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/rc.autofs b/samples/rc.autofs
index 9647b38..10bd1ad 100644
--- a/samples/rc.autofs
+++ b/samples/rc.autofs
@@ -51,8 +51,10 @@ then
options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'`
if [ -x $map ]; then
echo "automount $dir program $map $options $localoptions"
- else
+ elif [ -f $map ]; then
echo "automount $dir file $map $options $localoptions"
+ else
+ echo "automount $dir `basename $map` $options $localoptions"
fi
fi
done