aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/sysupgrade
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-10-06 04:51:56 +0000
committerJohn Crispin <john@openwrt.org>2014-10-06 04:51:56 +0000
commit7860c9707a386c5a6181937d47a4ef6faed93de9 (patch)
treea18f76810df8eb053d5f23c67061cef2ba82c1f3 /package/base-files/files/sbin/sysupgrade
parente2c3c2280c50f113ac0c53c7384c4e4bfc58ec35 (diff)
downloadupstream-7860c9707a386c5a6181937d47a4ef6faed93de9.tar.gz
upstream-7860c9707a386c5a6181937d47a4ef6faed93de9.tar.bz2
upstream-7860c9707a386c5a6181937d47a4ef6faed93de9.zip
sysupgrade: preserve symlinks in backups
Signed-off-by: Catalin Patulea <catalinp@google.com> SVN-Revision: 42783
Diffstat (limited to 'package/base-files/files/sbin/sysupgrade')
-rwxr-xr-xpackage/base-files/files/sbin/sysupgrade4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade
index 1ec02c729a..6e63783e0a 100755
--- a/package/base-files/files/sbin/sysupgrade
+++ b/package/base-files/files/sbin/sysupgrade
@@ -102,14 +102,14 @@ add_uci_conffiles() {
local file="$1"
( find $(sed -ne '/^[[:space:]]*$/d; /^#/d; p' \
/etc/sysupgrade.conf /lib/upgrade/keep.d/* 2>/dev/null) \
- -type f 2>/dev/null;
+ -type f -o -type l 2>/dev/null;
opkg list-changed-conffiles ) | sort -u > "$file"
return 0
}
add_overlayfiles() {
local file="$1"
- find /overlay/etc/ -type f | sed \
+ find /overlay/etc/ -type f -o -type l | sed \
-e 's,^/overlay/,/,' \
-e '\,/META_[a-zA-Z0-9]*$,d' \
-e '\,/functions.sh$,d' \