Skip to content
Snippets Groups Projects
  1. Jan 16, 2017
  2. Dec 02, 2016
    • Jo-Philipp Wich's avatar
      build: adjust version number handling · 5f3c96c2
      Jo-Philipp Wich authored
      Move the revision info to the VERSION_CODE variable and default VERSION_NUMBER
      to CURRENT for master branch builds.
      
      Also introduce a new menuconfig option CONFIG_VERSION_CODE which allows users
      to override the revision value put into VERSION_CODE and adjust the template
      files used by the base-files package to accomodate for the changed semantics.
      
      While we're at it, also adjust the various URLs to match the current web site.
      
      After this commit, the relevent files will look like the examples given below:
      
          # cat /etc/openwrt_version
          r2398+1
      
          # cat /etc/openwrt_release
          DISTRIB_ID='LEDE'
          DISTRIB_RELEASE='CURRENT'
          DISTRIB_REVISION='r2398+1'
          DISTRIB_CODENAME='reboot'
          DISTRIB_TARGET='x86/64'
          DISTRIB_DESCRIPTION='LEDE Reboot CURRENT r2398+1'
          DISTRIB_TAINTS='no-all override'
      
          # cat /usr/lib/os-release
          NAME="LEDE"
          VERSION="CURRENT, Reboot"
          ID="lede"
          ID_LIKE="lede openwrt"
          PRETTY_NAME="LEDE Reboot CURRENT"
          VERSION_ID="current"
          HOME_URL="http://lede-project.org/"
          BUG_URL="http://bugs.lede-project.org/"
          SUPPORT_URL="http://forum.lede-project.org/"
          BUILD_ID="r2398+1"
          LEDE_BOARD="x86/64"
          LEDE_TAINTS="no-all override"
          LEDE_DEVICE_MANUFACTURER="LEDE"
          LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
          LEDE_DEVICE_PRODUCT="Generic"
          LEDE_DEVICE_REVISION="v0"
          LEDE_RELEASE="LEDE Reboot CURRENT r2398+1"
      
      On a release branch, those files would look like:
      
          # cat /etc/openwrt_version
          r2399
      
          # cat /etc/openwrt_release
          DISTRIB_ID='LEDE'
          DISTRIB_RELEASE='16.12-CURRENT'
          DISTRIB_REVISION='r2399'
          DISTRIB_CODENAME='test_release'
          DISTRIB_TARGET='x86/64'
          DISTRIB_DESCRIPTION='LEDE Test Release 16.12-CURRENT r2399'
          DISTRIB_TAINTS='no-all override'
      
          # cat /usr/lib/os-release
          NAME="LEDE"
          VERSION="16.12-CURRENT, Test Release"
          ID="lede"
          ID_LIKE="lede openwrt"
          PRETTY_NAME="LEDE Test Release 16.12-CURRENT"
          VERSION_ID="16.12-current"
          HOME_URL="http://lede-project.org/"
          BUG_URL="http://bugs.lede-project.org/"
          SUPPORT_URL="http://forum.lede-project.org/"
          BUILD_ID="r2399"
          LEDE_BOARD="x86/64"
          LEDE_TAINTS="no-all override"
          LEDE_DEVICE_MANUFACTURER="LEDE"
          LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
          LEDE_DEVICE_PRODUCT="Generic"
          LEDE_DEVICE_REVISION="v0"
          LEDE_RELEASE="LEDE Test Release 16.12-CURRENT r2399"
      
      On a release tag, those files would look like:
      
          # cat /etc/openwrt_version
          r2500
      
          # cat /etc/openwrt_release
          DISTRIB_ID='LEDE'
          DISTRIB_RELEASE='17.02.1'
          DISTRIB_REVISION='r2500'
          DISTRIB_CODENAME='mighty_unicorn'
          DISTRIB_TARGET='x86/64'
          DISTRIB_DESCRIPTION='LEDE Mighty Unicorn 17.02.1 r2500'
          DISTRIB_TAINTS='no-all override'
      
          # cat /usr/lib/os-release
          NAME="LEDE"
          VERSION="17.02.1, Mighty Unicorn"
          ID="lede"
          ID_LIKE="lede openwrt"
          PRETTY_NAME="LEDE Mighty Unicorn 17.02.1"
          VERSION_ID="17.02.1"
          HOME_URL="http://lede-project.org/"
          BUG_URL="http://bugs.lede-project.org/"
          SUPPORT_URL="http://forum.lede-project.org/"
          BUILD_ID="r2500"
          LEDE_BOARD="x86/64"
          LEDE_TAINTS="no-all override"
          LEDE_DEVICE_MANUFACTURER="LEDE"
          LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/
      
      "
          LEDE_DEVICE_PRODUCT="Generic"
          LEDE_DEVICE_REVISION="v0"
          LEDE_RELEASE="LEDE Mighty Unicorn 17.02.1 r2500"
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      Acked-by: default avatarFelix Fietkau <nbd@nbd.name>
      5f3c96c2
  3. Jun 24, 2016
    • Daniel Dickinson's avatar
      base-files: Add standard os-release file · f954f433
      Daniel Dickinson authored
      
      /etc/os-release is the standard distribution release information
      file, therefore add it (and image configuration options for
      fields not previously present in LEDE).  Once it is deemed
      reasonable the non-standard openwrt_release, openwrt_version,
      and device_info files could be removed (that is with this patch
      we consider them deprecated in favour of the standard file).
      
      Signed-off-by: default avatarDaniel Dickinson <lede@daniel.thecshore.com>
      f954f433
  4. Apr 18, 2016
  5. Oct 20, 2011
  6. Feb 13, 2011
  7. Feb 10, 2011
  8. Dec 22, 2010
  9. Nov 17, 2010
  10. Oct 04, 2010
    • Jo-Philipp Wich's avatar
      base-files: utilize uci_get_state to read the previous dhcp router address in... · 0fda5f75
      Jo-Philipp Wich authored
      base-files: utilize uci_get_state to read the previous dhcp router address in udhcpc default script. The setup_switch() procedure provided by swconfig calls config_load() during network restart and thus confuses udhcpc's uci state keeping resulting in a missing default route on each second network restart. Bypass the cached state vars and query uci directly to make the script immune against unwanted runtime changes.
      
      SVN-Revision: 23211
      0fda5f75
  11. Sep 19, 2010
  12. May 30, 2010
    • Jo-Philipp Wich's avatar
      base-files: - use add_dns() and remove_dns() for when changing... · 261d41a9
      Jo-Philipp Wich authored
      base-files: - use add_dns() and remove_dns() for when changing resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision
      
      SVN-Revision: 21638
      261d41a9
  13. May 17, 2010
  14. Feb 12, 2010
  15. Feb 05, 2010
  16. Oct 20, 2009
  17. Sep 09, 2009
  18. Sep 06, 2009
  19. Jul 12, 2009
  20. Jul 03, 2009
  21. Jun 13, 2009
  22. May 17, 2009
  23. May 10, 2009
  24. May 06, 2009
  25. Apr 04, 2009
  26. Feb 19, 2009
  27. Sep 23, 2008
  28. Feb 03, 2008
  29. Sep 12, 2007
  30. Jul 12, 2007
  31. Jun 16, 2007
  32. May 15, 2007
  33. May 14, 2007
  34. May 13, 2007
  35. Mar 04, 2007
  36. Jan 08, 2007
  37. Nov 22, 2006
Loading