[OpenWrt-Devel] [PATCH 3/3] base-files: move find_mtd_chardev() to /lib/functions.sh

mans0n mans0n at gorani.run
Mon Mar 16 12:07:50 EDT 2020


On 2020-03-14 01:11, Adrian Schmutzler wrote:
> While find_mtd_index() and find_mtd_part() are located in
> /lib/functions.sh, find_mtd_chardev() has been located in
> /lib/functions/system.sh.
> 
> Move the latter to the former file to keep similar functions
> together.

Umm, what about mtd_get_part_size()? It also seems more related to mtd 
rather than macaddr.

> 
> While at it, fix some corresponding includes.
> 
> Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
> ---
>   package/base-files/Makefile                               | 2 +-
>   package/base-files/files/lib/functions.sh                 | 8 ++++++++
>   package/base-files/files/lib/functions/system.sh          | 8 --------
>   .../ath79/base-files/lib/functions/mikrotik-caldata.sh    | 2 ++
>   .../linux/lantiq/xrx200/base-files/etc/board.d/02_network | 1 +
>   5 files changed, 12 insertions(+), 9 deletions(-)
> 

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list