diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-29 13:30:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-29 13:30:23 +0000 |
commit | d5653558ac0044824974c7e73d349e4b2747e3ab (patch) | |
tree | d21e3225d3c667afe726dd2c24592acd58ece1a0 /package/base-files/files | |
parent | dbb77e39a07a86b18ecc4ce27bb2841e0a099c9d (diff) | |
download | mtk-20170518-d5653558ac0044824974c7e73d349e4b2747e3ab.zip mtk-20170518-d5653558ac0044824974c7e73d349e4b2747e3ab.tar.gz mtk-20170518-d5653558ac0044824974c7e73d349e4b2747e3ab.tar.bz2 |
base-files: properly escape strings for version info
Make sure they don't break the sed command, and also make device_info
and openwrt_release more robust for parsing by scripts
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41885
Diffstat (limited to 'package/base-files/files')
-rw-r--r-- | package/base-files/files/etc/device_info | 6 | ||||
-rw-r--r-- | package/base-files/files/etc/openwrt_release | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/package/base-files/files/etc/device_info b/package/base-files/files/etc/device_info index da2c4a3..2962cd7 100644 --- a/package/base-files/files/etc/device_info +++ b/package/base-files/files/etc/device_info @@ -1,3 +1,3 @@ -DEVICE_MANUFACTURER="%M" -DEVICE_PRODUCT="%P" -DEVICE_REVISION="%h" +DEVICE_MANUFACTURER='%M' +DEVICE_PRODUCT='%P' +DEVICE_REVISION='%h' diff --git a/package/base-files/files/etc/openwrt_release b/package/base-files/files/etc/openwrt_release index 384386a..9b2a40c 100644 --- a/package/base-files/files/etc/openwrt_release +++ b/package/base-files/files/etc/openwrt_release @@ -1,7 +1,7 @@ -DISTRIB_ID="%D" -DISTRIB_RELEASE="%C" -DISTRIB_REVISION="%R" -DISTRIB_CODENAME="%n" -DISTRIB_TARGET="%S" -DISTRIB_DESCRIPTION="%D %N %V" -DISTRIB_TAINTS="%t" +DISTRIB_ID='%D' +DISTRIB_RELEASE='%C' +DISTRIB_REVISION='%R' +DISTRIB_CODENAME='%n' +DISTRIB_TARGET='%S' +DISTRIB_DESCRIPTION='%D %N %V' +DISTRIB_TAINTS='%t' |