Hi,
Stephen Walton wrote:
> I don't have a patch to do this, but the parsing is done by the
> /etc/rc.d/init.d/autofs shell script
Thanks for the pointer. Attached is a patch which I'd like to see to go
into the general version of autofs.
Tobias
--
This above all: To thine own self be true / And it must follow as
the night the day / Thou canst not then be false to any man.
--- samples/rc.autofs.in.old Fri Aug 31 02:11:17 2001
+++ samples/rc.autofs.in Fri Aug 31 02:26:22 2001
@@ -81,7 +81,9 @@
#
if [ -f /etc/auto.master ]
then
- cat /etc/auto.master | sed -e '/^#/d' -e '/^$/d'| (
+# We remove not only comments, but also "/-" since it stands for
+# direct mounts which autofs doesn't support yet.
+ cat /etc/auto.master | sed -e '/^#/d' -e '/^$/d' -e '/^\/-/d[ \t]'| (
while read dir map options
do
if [ ! -z "$dir" -a ! -z "$map" \
@@ -106,7 +108,8 @@
#
if [ -e /usr/bin/ypcat ] && [ `ypcat -k auto.master 2>/dev/null | wc -l` -gt 0 ]
then
- ypcat -k auto.master | (
+ # remove "/-" line used by direct mounts, which we don't yet understand
+ ypcat -k auto.master | sed -e '/^\/-[ \t]/d' | (
while read dir map options
do
if [ ! -z "$dir" -a ! -z "$map" \