lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

100-gen-oui-fix-tempfile-use-mirror.patch (590B)


      1 --- a/gen_oui.sh
      2 +++ b/gen_oui.sh
      3 @@ -3,7 +3,7 @@
      4  VER="1.2"
      5  
      6  # Location of tmp file
      7 -TMPFILE="/tmp/oui.tmp"
      8 +TMPFILE="./oui.tmp"
      9  
     10  # File to write
     11  OUIFILE="oui.txt"
     12 @@ -22,10 +22,7 @@ exit 1
     13  
     14  get_oui ()
     15  {
     16 -echo -n "Downloading OUI file from IEEE..."
     17 -wget --quiet -O $TMPFILE http://standards.ieee.org/develop/regauth/oui/oui.txt || \
     18 -	ErrorMsg ERR "Unable to contact IEEE server!"
     19 -
     20 +[ -f "$TMPFILE" ] || ErrorMsg ERR "Unable to find $TMPFILE"
     21  echo "OK"
     22  }
     23  
     24 @@ -44,7 +41,6 @@ echo "OK"
     25  clean_all ()
     26  {
     27  echo -n "Removing files..."
     28 -rm -f $TMPFILE
     29  rm -f $OUIFILE
     30  echo "OK"
     31  }