cifsuser=$(getarg cifsuser)
fi
+ # shellcheck disable=SC2034
path=${server#*/}
+ # shellcheck disable=SC2034
server=${server%/*}
if [ ! "$cifsuser" -o ! "$cifspass" ]; then
die "For CIFS support you need to specify a cifsuser and cifspass either in the cifsuser and cifspass commandline parameters or in the root= CIFS URL."
fi
+ # shellcheck disable=SC2034
options="user=$cifsuser,pass=$cifspass,$(getarg rootflags=)"
}
[ "${netroot%%:*}" = "cifs" ] || return
# Check required arguments
-cifs_to_var $netroot
+cifs_to_var "$netroot"
# If we don't have a server, we need dhcp
if [ -z "$server" ]; then
+ # shellcheck disable=SC2034
DHCPORSERVER="1"
fi
# Done, all good!
+# shellcheck disable=SC2034
rootok=1
-echo '[ -e $NEWROOT/proc ]' > $hookdir/initqueue/finished/cifsroot.sh
+# shellcheck disable=SC2016
+echo '[ -e $NEWROOT/proc ]' > "$hookdir"/initqueue/finished/cifsroot.sh