summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-05 07:40:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-05 07:40:25 +0000
commit978ecae6855efdd2806c2975b85b22c9b2833862 (patch)
tree56cd05febdfb8df94a96f24f6ccc171e6ae9a386 /package/base-files/files
parenta65975e0d681074629a6e27988c7a25b22b934cd (diff)
downloadmtk-20170518-978ecae6855efdd2806c2975b85b22c9b2833862.zip
mtk-20170518-978ecae6855efdd2806c2975b85b22c9b2833862.tar.gz
mtk-20170518-978ecae6855efdd2806c2975b85b22c9b2833862.tar.bz2
base-files: sysupgrade: merge info from "opkg list-changed-conffiles" to backup file list
SVN-Revision: 23233
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/sbin/sysupgrade5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade
index 0fb0753..1210e6e 100755
--- a/package/base-files/files/sbin/sysupgrade
+++ b/package/base-files/files/sbin/sysupgrade
@@ -55,8 +55,9 @@ EOF
add_uci_conffiles() {
local file="$1"
- find /etc/config /etc/passwd /etc/group /etc/dropbear \
- /etc/firewall.user /etc/rc.local -type f > "$file"
+ ( find /etc/config /etc/passwd /etc/group /etc/dropbear \
+ /etc/firewall.user /etc/rc.local -type f;
+ opkg list-changed-conffiles ) | sort -u > "$file"
return 0
}