fix(dcssblk): shellcheck for modules.d/95dcssblk

master
Harald Hoyer 2021-03-26 10:29:25 +01:00 committed by Harald Hoyer
parent a19ab29197
commit f732667d14
2 changed files with 3 additions and 5 deletions

View File

View File

@ -1,8 +1,6 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
dcssblk_arg=$(getarg rd.dcssblk=)
if [ $? = 0 ]; then

if dcssblk_arg=$(getarg rd.dcssblk=); then
info "Loading dcssblk segments=$dcssblk_arg"
modprobe dcssblk segments=$dcssblk_arg
modprobe dcssblk segments="$dcssblk_arg"
fi