base-files: sysupgrade: add function for conffiles retrieval
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 10 Jul 2020 10:47:49 +0000 (12:47 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 29 Dec 2020 23:00:13 +0000 (00:00 +0100)
commit93b612221208c731da9b6c7100af636894405f75
tree349fe8b46156c14d00ed7033bf3fd7d64bf2a3ba
parentf17c30098356778f212f73b8ea0c2e238907b580
base-files: sysupgrade: add function for conffiles retrieval

The find command to retrieve files from /etc/sysupgrade.conf and
/lib/upgrade/keep.d/* is used twice in almost the same way.

Move it into a function to consolidate, enhance readability and make
future adjustments easier.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Paul Spooren <mail@aparcar.org>
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>
package/base-files/Makefile
package/base-files/files/sbin/sysupgrade