summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/servconfig
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/stage3-stuff/bin/servconfig')
-rwxr-xr-xinitramfs/stage3-stuff/bin/servconfig7
1 files changed, 4 insertions, 3 deletions
diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig
index dcadc70a..c88c58ce 100755
--- a/initramfs/stage3-stuff/bin/servconfig
+++ b/initramfs/stage3-stuff/bin/servconfig
@@ -187,12 +187,13 @@ auto.master." >/mnt/etc/auto.misc
strinstr "/" ${automnt_dir} && error "$scfg_erratpld" nonfatal
amserv=$(uri_token $automnt_src server)
ampath=$(uri_token $automnt_src path)
- echo -e "/${automnt_dir}\t/etc/auto.${automnt_dir}\n" \
+ amdirn=$(echo ${automnt_dir}|sed "s,/,_,g")
+ echo -e "/${automnt_dir}\t/etc/auto.${amdirn}\n" \
>> /mnt/etc/auto.master
- echo -e "# /etc/auto.${automnt_dir} created by $0:\n" \
+ echo -e "# /etc/auto.${amdirn} created by $0:\n" \
> /mnt/etc/auto.${automnt_dir}
echo -e "*\t-rsize=32768,wsize=32768,rw\t${amserv}:${ampath}/&" \
- >> /mnt/etc/auto.${automnt_dir}
+ >> /mnt/etc/auto.${amdirn}
# no tempfs needed if automounter operates on /home
[ "${automnt_dir}" = "home" ] && umount -t tmpfs /mnt/home 2>/dev/null
# portmapper is needed for remote NFS sources and local nfs directories