summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/suse
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-05-18 11:43:10 +0200
committerDirk von Suchodoletz2006-05-18 11:43:10 +0200
commitbbc227c6eee72cf59322e93630b002e1ca141dda (patch)
tree25431334383bf7c6c0ee7b5d73db72d3194bfae5 /initrd/distro-specs/suse
parentProblems with automounter corrected (hopefully), to be checked ... (diff)
downloadcore-bbc227c6eee72cf59322e93630b002e1ca141dda.tar.gz
core-bbc227c6eee72cf59322e93630b002e1ca141dda.tar.xz
core-bbc227c6eee72cf59322e93630b002e1ca141dda.zip
Forgot to add automounter to other distros too (at least stub) ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@216 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/distro-specs/suse')
-rw-r--r--initrd/distro-specs/suse/functions-9.32
1 files changed, 2 insertions, 0 deletions
diff --git a/initrd/distro-specs/suse/functions-9.3 b/initrd/distro-specs/suse/functions-9.3
index 9955634c..67106f6e 100644
--- a/initrd/distro-specs/suse/functions-9.3
+++ b/initrd/distro-specs/suse/functions-9.3
@@ -425,6 +425,8 @@ if [ -f /mnt/etc/${D_SYSCONFDIR}/autofs ] ; then
# remove leading and trailing slash
automnt_dir=${automnt_dir#/}
automnt_dir=${automnt_dir%/}
+ test -d ${automnt_dir} || error "df_erradir"
+ strinstr "/" ${automnt_dir} || error "df_erratpld"
echo -e "/${automnt_dir}\t/etc/auto.${automnt_dir}\n" \
>> /mnt/etc/auto.master
echo -e "# /etc/auto.${automnt_dir} created by $0:\n" \