aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-06 04:51:56 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-06 04:51:56 +0000
commit37a33d7e8dfcee6e425f87e3779394535ffbda7b (patch)
tree15a0b6d81a4e72f0565bd8c6a62631ee8c4a3721 /package
parent5416fbe6e010109c808e676c27a8a40beed1ffd2 (diff)
downloadupstream-37a33d7e8dfcee6e425f87e3779394535ffbda7b.tar.gz
upstream-37a33d7e8dfcee6e425f87e3779394535ffbda7b.tar.bz2
upstream-37a33d7e8dfcee6e425f87e3779394535ffbda7b.zip
sysupgrade: preserve symlinks in backups
Signed-off-by: Catalin Patulea <catalinp@google.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42783 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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' \