From: Ulrich Dangel Date: Sun, 8 Jan 2012 11:05:40 +0000 (+0100) Subject: Flexibilize mount handling for the DCS device. X-Git-Tag: v0.9.47~2 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=78d3706dacb929107532e904f5dbb6427d8b0bc0;ds=inline Flexibilize mount handling for the DCS device. This commit allows to specify mount options to be used for mounting the DCSDEVICE. This can be used to mount devices which need additional/special mount options. --- diff --git a/autoconfig.functions b/autoconfig.functions index 42c03bd..23eee82 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1530,7 +1530,7 @@ else else [ -d $DCSMP ] || mkdir $DCSMP umount $DCSMP >>$DEBUG 2>&1 # make sure it is not mounted - mount -o ro -t auto $DCSDEVICE $DCSMP ; RC="$?" + mount -o ${MOUNTOPTIONS:-ro} -t ${DCSFS:-auto} $DCSDEVICE $DCSMP ; RC="$?" if [[ $RC == 0 ]]; then einfo "Successfully mounted $DCSDEVICE to $DCSMP (readonly)." ; eend 0 else