[source] base-files: add ARCH_PACKAGES to openwrt_release and os-release

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 16 04:32:03 PST 2017


neoraider pushed a commit to source.git, branch master:
https://git.lede-project.org/b9a408c2b49ccfa0e906bda00ef77f4002e401fd

commit b9a408c2b49ccfa0e906bda00ef77f4002e401fd
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Mon Jan 16 13:25:14 2017 +0100

    base-files: add ARCH_PACKAGES to openwrt_release and os-release
    
    Knowing the package architecture at runtime can be useful, e.g. to
    configure opkg repository URLs. The value of ARCH_PACKAGES ("%A" in
    VERSION_SED) as added to openwrt_release (as DISTRIB_ARCH) and os-release
    (as LEDE_ARCH).
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 package/base-files/files/etc/openwrt_release | 1 +
 package/base-files/files/usr/lib/os-release  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/package/base-files/files/etc/openwrt_release b/package/base-files/files/etc/openwrt_release
index 46ad632..da86208 100644
--- a/package/base-files/files/etc/openwrt_release
+++ b/package/base-files/files/etc/openwrt_release
@@ -3,5 +3,6 @@ DISTRIB_RELEASE='%V'
 DISTRIB_REVISION='%R'
 DISTRIB_CODENAME='%n'
 DISTRIB_TARGET='%S'
+DISTRIB_ARCH='%A'
 DISTRIB_DESCRIPTION='%D %N %V %C'
 DISTRIB_TAINTS='%t'
diff --git a/package/base-files/files/usr/lib/os-release b/package/base-files/files/usr/lib/os-release
index 79b08d1..21abf96 100644
--- a/package/base-files/files/usr/lib/os-release
+++ b/package/base-files/files/usr/lib/os-release
@@ -9,6 +9,7 @@ BUG_URL="%b"
 SUPPORT_URL="%s"
 BUILD_ID="%R"
 LEDE_BOARD="%S"
+LEDE_ARCH="%A"
 LEDE_TAINTS="%t"
 LEDE_DEVICE_MANUFACTURER="%M"
 LEDE_DEVICE_MANUFACTURER_URL="%m"



More information about the lede-commits mailing list