base-files: generalize ucidef_set_network_device
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 9 Nov 2023 14:11:50 +0000 (15:11 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 10 Nov 2023 11:30:33 +0000 (12:30 +0100)
commitda7ad229311e6c68b023550f383d932dfd62d13b
tree9e5ce994c4386928a8b3665e611c9ea2087d2889
parent1714087442bb61591fe60a375f39b39abd657e25
base-files: generalize ucidef_set_network_device

Generalize ucidef_set_network_device functions to use a more generic
_ucidef_set_network_device_common that takes as args the option and the
value to apply instead of hardcoding.

This is to reduce duplicated code in preparation for addition of
additional option for board.d usage.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/base-files/files/lib/functions/uci-defaults.sh