diff options
author | Travis Kemen <thepeople@openwrt.org> | 2010-03-03 18:19:19 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2010-03-03 18:19:19 +0000 |
commit | c4dd2d0542d834d5e315c849fa09467ae83f812c (patch) | |
tree | b76c498f8382cde3cf570e17a5144ecb56e10e3c /package/base-files | |
parent | 40ebb839c214b0a620f57fd6132081a8a33bbd0d (diff) | |
download | upstream-c4dd2d0542d834d5e315c849fa09467ae83f812c.tar.gz upstream-c4dd2d0542d834d5e315c849fa09467ae83f812c.tar.bz2 upstream-c4dd2d0542d834d5e315c849fa09467ae83f812c.zip |
grab all config files for installed packages, closes #3718
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19964 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/sbin/sysupgrade | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 0cf51cfb78..4d04ab4ea5 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -51,8 +51,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/httpd /etc/config/network /etc/config/system /etc/config/wireless /etc/config/fstab \ + /etc/firewall.user /etc/rc.local /etc/passwd /etc/group /etc/hosts -type f > "$file" + find `cat /usr/lib/opkg/status | grep "Conffiles:" | grep -v -e "/etc/banner" -e "/etc/opkg.conf" |cut -d':' -f2` -type f >> "$file" return 0 } |