]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: find_mmc_part: Silence error when no MMC exists 19492/head
authorAndreas Gnau <andreas.gnau@iopsys.eu>
Tue, 22 Jul 2025 09:12:08 +0000 (11:12 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 27 Jul 2025 16:08:44 +0000 (18:08 +0200)
commit11aa0fc6fb9405c5aa6f8ea05759d5719c982a82
tree7ae614b3c9a9d6326517681e25f1b5b692ad1ca0
parentfbf991544fb8ed58568aa63ed69c85a3964a11ab
base-files: find_mmc_part: Silence error when no MMC exists

When running find_mmc_part on a system without MMC or when the given
root device does not exist, an error message is printed to stderr.

    grep: /sys/block/mmcblk*/mmcblk*p*/uevent: No such file or directory

Silence this error message.

Since find_mmc_part is mostly used to get block devices of MMC
partitions and the negative result (partion not found) is checked for by
the caller, the error message can be silenced without causing any
negative impact.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Link: https://github.com/openwrt/openwrt/pull/19492
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/base-files/files/lib/functions.sh