Skip to content
Snippets Groups Projects
  1. Sep 16, 2015
  2. Aug 17, 2015
  3. May 19, 2015
  4. Apr 10, 2015
  5. Feb 04, 2015
  6. Dec 01, 2014
  7. 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
  8. Oct 14, 2014
  9. Oct 08, 2014
  10. Oct 06, 2014
  11. Sep 16, 2014
  12. Sep 11, 2014
  13. Jun 29, 2014
  14. Apr 08, 2014
  15. Apr 07, 2014
  16. Dec 27, 2013
  17. Nov 25, 2013
  18. 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
  19. Nov 08, 2013
  20. Jul 20, 2013
  21. Jun 22, 2013
  22. Jun 21, 2013
  23. Feb 17, 2013
  24. Feb 16, 2013
  25. Dec 27, 2012
  26. Dec 19, 2012
  27. Dec 12, 2012
Loading