mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-23 11:16:37 +00:00
package/mke2img: check nb_blocks is specified
Since we do not have autocalculation anymore, the user must specify the exact number of blocks. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
205c528304
commit
48d5bebe76
@ -44,6 +44,9 @@ main() {
|
|||||||
if [ -z "${image}" ]; then
|
if [ -z "${image}" ]; then
|
||||||
error "you must specify an output image file with '-o'\n"
|
error "you must specify an output image file with '-o'\n"
|
||||||
fi
|
fi
|
||||||
|
if [ -z "${nb_blocks}" ]; then
|
||||||
|
error "you must specify the size of the output image with '-b'\n"
|
||||||
|
fi
|
||||||
case "${gen}:${rev}" in
|
case "${gen}:${rev}" in
|
||||||
2:0|2:1|3:1|4:1)
|
2:0|2:1|3:1|4:1)
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user