projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf0c966
)
fix sysupgrade on overlayfs v23+
author
Imre Kaloz
<kaloz@openwrt.org>
Mon, 24 Nov 2014 15:55:52 +0000
(15:55 +0000)
committer
Imre Kaloz
<kaloz@openwrt.org>
Mon, 24 Nov 2014 15:55:52 +0000
(15:55 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 43365
package/base-files/files/sbin/sysupgrade
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/sysupgrade
b/package/base-files/files/sbin/sysupgrade
index 6e63783e0a16ebe9003e721e9eb19be2c5acd02c..215f482352d239457825b8071e7de92ba801326b 100755
(executable)
--- a/
package/base-files/files/sbin/sysupgrade
+++ b/
package/base-files/files/sbin/sysupgrade
@@
-109,7
+109,12
@@
add_uci_conffiles() {
add_overlayfiles() {
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 '\,/META_[a-zA-Z0-9]*$,d' \
-e '\,/functions.sh$,d' \