Lines Matching refs:grep
11 TOOL=$(echo $1 | grep -o "^[^ ]*")
16 if grep -wq "ID=buildroot" /etc/os-release 2>/dev/null; then
34 blkid 2>/dev/null | grep -w "$1" | head -n 1 | \
35 grep -o "^[^:]*" && return
38 for d in $(ls /dev/ | grep mtdblock); do
39 if grep -q "^$1$" /sys/block/$d/device/name; then
57 if echo $DEV | grep -vq /dev/mtd; then
75 if echo $DEV | grep -q ubiblock; then
95 if echo $DEV | grep -q ubiblock; then
108 if echo $DEV | grep -q ubiblock; then
129 if echo $DEV | grep -q ubiblock; then
227 SIZE=$(fatresize -i $DEV | grep "Size:" | grep -o "[0-9]*$")
290 echo ${OPTS//,/ } | xargs -n 1 | grep -oE "^$opt$"
304 DEV_NAME=$(grep -l "^$DEV_NO$" /sys/class/block/*/dev | \
310 PART_NO=$(echo $DEV | grep -oE "[0-9]*$")
319 PART_NAME=$(grep PARTNAME ${SYS_PATH}/uevent | cut -d '=' -f 2)