diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-17 18:24:30 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-17 18:24:30 +0000 |
commit | 740a2ee163928b3f9f64446b8c64a63becc12147 (patch) | |
tree | 9e6c0d4ecdfc0a4e5cc36bae180f3104d35a618f /package | |
parent | 5cf88bb032629ca85a4f8087e53d403367b54903 (diff) | |
download | mtk-20170518-740a2ee163928b3f9f64446b8c64a63becc12147.zip mtk-20170518-740a2ee163928b3f9f64446b8c64a63becc12147.tar.gz mtk-20170518-740a2ee163928b3f9f64446b8c64a63becc12147.tar.bz2 |
base-files: Fix sysupgrade overlay saving
A previous change to sysupgrade moved the overlay files into upper/
The -c switch generates a list of files to backup, but the sed
calls did not take this into consideration.
Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>
SVN-Revision: 48281
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/sbin/sysupgrade | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index ef83c4b..93f0749 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -115,6 +115,7 @@ add_overlayfiles() { local overlaydir="/overlay" fi find $overlaydir/etc/ -type f -o -type l | sed \ + -e 's,^/overlay\/upper/,/,' \ -e 's,^/overlay/,/,' \ -e '\,/META_[a-zA-Z0-9]*$,d' \ -e '\,/functions.sh$,d' \ |