openwrt-mirror/package/base-files/files
Andreas Gnau 11aa0fc6fb 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>
2025-07-27 18:08:44 +02:00
..
bin base-files: use cidr for config_generate 2025-05-30 22:55:27 +02:00
etc procd: do not overwrite service data by default 2024-12-17 21:54:54 +01:00
lib base-files: find_mmc_part: Silence error when no MMC exists 2025-07-27 18:08:44 +02:00
rom
sbin base-files: ignore initscript output in sysupgrade 2025-06-22 19:45:02 +01:00
usr base-files: allow platform_check_image to prevent --force 2025-04-21 16:12:42 +01:00