fi
# Look through the options and remove rw/locking options
-OLDIFS=$IFS
+OLDIFS="$IFS"
IFS=,
for f in $options ; do
[ "$f" = "ro" -o "$f" = "rw" ] && nfsrw=$f && continue
[ "$f" = "lock" -o "$f" = "nolock" ] && nfslock=$f && continue
flags=${flags:+$flags,}$f
done
-IFS=$OLDIFS
+IFS="$OLDIFS"
options=$flags
# Override rw/ro if set on cmdline
if [ -z "$RDDEBUG" ]; then
if [ -e /proc/cmdline ]; then
RDDEBUG=no
- if getarg rdinitdebug; then
+ if getarg rdinitdebug; then
RDDEBUG=yes
fi
fi
local arg="$@:"
nfs="${arg%%:*}"
arg="${arg##$nfs:}"
- # check for server
- local OLDIFS="$IFS"
# check if we have a server
if strstr "$arg" ':/*' ; then