You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
966 B

  1. From eb1730afff9377a5f167d0738ad0b3aeba9634d0 Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cote2004-github@yahoo.com>
  3. Date: Tue, 19 Mar 2019 18:27:10 -0300
  4. Subject: [PATCH] getnoddosdeviceprofiles: wget timestamping check
  5. Check if the --timestamping option is available to avoid an error in
  6. openwrt when wget is handled by uclient-fetch.
  7. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
  8. diff --git a/tools/getnoddosdeviceprofiles b/tools/getnoddosdeviceprofiles
  9. index 337e351..174034f 100755
  10. --- a/tools/getnoddosdeviceprofiles
  11. +++ b/tools/getnoddosdeviceprofiles
  12. @@ -86,7 +86,12 @@ fi
  13. # That's also why we don't delete the downloaded file
  14. if [ "$WGET" != "" ]
  15. then
  16. - GETURL="$WGET --quiet --timestamping"
  17. + GETURL="$WGET --quiet"
  18. + # Make sure wget accepts --timestamping
  19. + if wget --help 2>&1 | egrep timestamping > /dev/null
  20. + then
  21. + GETURL="$GETURL --timestamping"
  22. + fi
  23. else
  24. if [ "$CURL" != "" ]
  25. then