mirror of https://github.com/hak5/openwrt.git
fix sysupgrade on overlayfs v23+
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 43365lede-17.01
parent
cf0c966d9a
commit
2e3b84c3b5
|
@ -109,7 +109,12 @@ add_uci_conffiles() {
|
||||||
|
|
||||||
add_overlayfiles() {
|
add_overlayfiles() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
find /overlay/etc/ -type f -o -type l | sed \
|
if [ -d /overlay/upper ]; then
|
||||||
|
local overlaydir="/overlay/upper"
|
||||||
|
else
|
||||||
|
local overlaydir="/overlay"
|
||||||
|
fi
|
||||||
|
find $overlaydir/etc/ -type f -o -type l | sed \
|
||||||
-e 's,^/overlay/,/,' \
|
-e 's,^/overlay/,/,' \
|
||||||
-e '\,/META_[a-zA-Z0-9]*$,d' \
|
-e '\,/META_[a-zA-Z0-9]*$,d' \
|
||||||
-e '\,/functions.sh$,d' \
|
-e '\,/functions.sh$,d' \
|
||||||
|
|
Loading…
Reference in New Issue