xref: /OK3568_Linux_fs/device/rockchip/common/scripts/check-mkimage.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/bash -e
2
3# mk-image.sh requires -d option to pack e2fs for non-root user
4if ! mke2fs -h 2>&1 | grep -wq "\-d"; then
5	echo -e "\e[35m"
6	echo "Your mke2fs is too old: $(mke2fs -V 2>&1 | head -n 1)"
7	echo "Please update it:"
8	"$SCRIPTS_DIR/install-e2fsprogs.sh"
9	echo -e "\e[0m"
10	exit 1
11fi
12