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/servconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig
index c88c58ce..b0142001 100755
--- a/initramfs/stage3-stuff/bin/servconfig
+++ b/initramfs/stage3-stuff/bin/servconfig
@@ -184,14 +184,13 @@ auto.master." >/mnt/etc/auto.misc
automnt_dir=${automnt_dir#/}
automnt_dir=${automnt_dir%/}
test -d /${automnt_dir} || error "$scfg_erradir" nonfatal
- strinstr "/" ${automnt_dir} && error "$scfg_erratpld" nonfatal
amserv=$(uri_token $automnt_src server)
ampath=$(uri_token $automnt_src path)
amdirn=$(echo ${automnt_dir}|sed "s,/,_,g")
echo -e "/${automnt_dir}\t/etc/auto.${amdirn}\n" \
>> /mnt/etc/auto.master
echo -e "# /etc/auto.${amdirn} created by $0:\n" \
- > /mnt/etc/auto.${automnt_dir}
+ > /mnt/etc/auto.${amdirn}
echo -e "*\t-rsize=32768,wsize=32768,rw\t${amserv}:${ampath}/&" \
>> /mnt/etc/auto.${amdirn}
# no tempfs needed if automounter operates on /home