Skip to content
Snippets Groups Projects
  1. Mar 22, 2017
  2. Dec 20, 2016
  3. Nov 21, 2016
  4. Sep 26, 2016
  5. May 27, 2016
    • Jo-Philipp Wich's avatar
      base-files: rework postinstall uci-defaults handling · 7f694582
      Jo-Philipp Wich authored
      
      Some package postinstall operations, e.g. those emitted by the LuCI build
      system, source and delete the uci-defaults themselves upon package insteall,
      causing the generic defaults apply code to trigger shell errors like:
      
          .../luci-app-ddns.postinst: .: line 130: can't open './40_luci-ddns'
      
      Rework the generic apply code to check the existence of the uci-defaults
      script before trying to source it, use sed to prefilter the list of entries
      from the control file and perform the directory change in a subshell,
      avoiding the need for cd $OLDPWD.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      7f694582
  6. May 04, 2016
    • Daniel Golle's avatar
      base-files: evaluate uci-defaults on run-time installations · 9b9c78e0
      Daniel Golle authored
      
      Packages may install scripts into /etc/uci-defaults to be executed once
      after installation, usually at the first boot of the target. This works
      fine if the package was installed to the rootfs during build or using
      the ImageBuilder.
      If the package is installed using opkg during run-time uci-defaults
      were applied only after a reboot of the device. Avoid the need to
      reboot by evaluting the package's uci-defaults in default-postinst.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      9b9c78e0
  7. Apr 29, 2016
  8. Sep 16, 2015
  9. Aug 17, 2015
  10. May 19, 2015
  11. Apr 10, 2015
  12. Feb 04, 2015
  13. Dec 01, 2014
  14. Oct 15, 2014
    • John Crispin's avatar
      default_postinst() fix wrong call of group_add · 666659fb
      John Crispin authored
      
      [base-files] default_postinst() fix wrong call of group_add
      after 12bae65d07d29854204715cebc1ef1eae237fd9b group_add is
      always called. shell scripting can be tricky...
      
      wrong call:
      [ -n "$gid" ] && group_exists $name || group_add $name $gid
      
      this leads to a call of 'group_add' when $gid is emtpy, proof:
      
      root@box:~ functionA() { echo A; }
      root@box:~ functionB() { echo B; }
      root@box:~ VAR=
      root@box:~ [ -n "$VAR" ] && functionA || functionB
      B
      root@box:~ # functionB was called, but VAR is not filled
      root@box:~ VAR=filled
      root@box:~ [ -n "$VAR" ] && functionA || functionB
      A
      
      Signed-off-by: default avatarBastian Bittorf <bittorf@bluebottle.com>
      
      SVN-Revision: 42926
      666659fb
  15. Oct 14, 2014
  16. Oct 08, 2014
  17. Oct 06, 2014
  18. Sep 16, 2014
  19. Sep 11, 2014
  20. Jun 29, 2014
  21. Apr 08, 2014
  22. Apr 07, 2014
  23. Dec 27, 2013
  24. Nov 25, 2013
  25. Nov 14, 2013
    • Gabor Juhos's avatar
      base-files: add macaddr_canonicalize helper function · b7914344
      Gabor Juhos authored
      In commit r38690, the MAC address canonicalization
      has been converted to use 'tr' instead of 'printf'.
      This only works if with MAC addresses which uses
      the 'xx:xx:xx:xx:xx:xx' format.
      
      However on some boards, the MAC addresses are stored
      in different format in the mtd partition. Some vendors
      are using hyphens or dots as separators instead of
      colons. Also the leading zeroes may be missing from the
      individual octets or those are replaced with spaces.
      
      Add a new function which can be used to convert these
      into the 'xx:xx:xx:xx:xx:xx' format. Also update the
      'mtd_get_mac_ascii' function to use the new helper.
      
      The helper function is based on this code:
        http://isquared.nl/blog/2010/08/11/Bash-function-to-canonicalize-MAC-addresses/
      
      
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      
      SVN-Revision: 38803
      b7914344
  26. Nov 08, 2013
  27. Jul 20, 2013
  28. Jun 22, 2013
Loading