projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2c3c22
)
sysupgrade: preserve symlinks in backups
author
John Crispin
<
[email protected]
>
Mon, 6 Oct 2014 04:51:56 +0000
(
04:51
+0000)
committer
John Crispin
<
[email protected]
>
Mon, 6 Oct 2014 04:51:56 +0000
(
04:51
+0000)
Signed-off-by: Catalin Patulea <
[email protected]
>
SVN-Revision: 42783
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 1ec02c729acce798fedf38601c725b1dabb96cf9..6e63783e0a16ebe9003e721e9eb19be2c5acd02c 100755
(executable)
--- 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' \