title: Issue with Realtek 8811CU installation script
body: <p>I'm new here, so apologies if this is the wrong forum, but I do need to debug this setup script so it seems appropriate enough.</p>
  
  <p>I bought a USB WiFi chip on Amazon (the <a href="https://www.amazon.ca/OURLINK-600mbps-802-11ac-Wireless-10-6-10-12-4/dp/B018TX8IDA/ref=sr_1_5?ie=UTF8&amp;qid=1536803518&amp;sr=8-5&amp;keywords=ourlink%20ac600" rel="nofollow noreferrer">Ourlink AC600</a>) which uses the Realtek 8811CU chipset and the installation  script it comes with for Linux is giving me errors right off the bat.</p>
  
  <p>I tried more or less to debug but I'm simply awful with shell scripts so I didn't make too much progress. Here's the output of running <code>chmod +x install.sh &amp;&amp; /install.sh</code>:</p>
  
  <pre><code>##################################################
  Realtek Wi-Fi driver Auto installation script
  November, 21 2011 v1.1.0
  ##################################################
  Decompress the driver source tar ball:
  
  tar: Old option 'f' requires an argument.
  Try 'tar --help' or 'tar --usage' for more information.
  rtl8821CU_WiFi_linux_v5.2.5.1_22211.20170517_COEX20170310-1212.rar
  ./install.sh: line 25: cd: 
  rtl8821CU_WiFi_linux_v5.2.5.1_22211.20170517_COEX20170310-1212.rar: Not a 
  directory
  Authentication requested [root] for make clean:
  make: *** No rule to make target 'clean'.  Stop.
  Authentication requested [root] for make driver:
  make: *** No targets specified and no makefile found.  Stop.
  ##################################################
  Compile make driver error: 2
  Please check error Mesg
  ##################################################
  </code></pre>
  
  <p>After I figured it was trying to decompress an archive that wasn't there (as the only archive present is a .rar) I edited the script to search for rar files instead (by changing the variable to grep .rar instead of .tar.gz on line 18 and 23). I then changed the tar extraction command to "unrar e" as it was no longer trying to extract a tar ball. When I ran it I got <a href="https://pastebin.com/uZiyD3Zw" rel="nofollow noreferrer">this output</a>. Pastebin as it's rather long.</p>
  
  <p>And while I would go ahead and check the error message, the driver package includes no such references. Evidently next time I should buy from a name brand.</p>
  
  <p>Here's pastebins of the contents of <a href="https://pastebin.com/h1xZ1Suz" rel="nofollow noreferrer">install.sh</a> and the respective <a href="https://pastebin.com/FZpaHDGA" rel="nofollow noreferrer">Makefile</a> the script uses, as they seem important. If anyone has any ideas, is in need of more info, or has a working driver for the 8811CU, please let me know! As I'm a total newbie when it comes to debugging driver install scripts, any pointers would be appreciated. Thanks in advance.</p>
  
  <p>And I'm on Ubuntu 18.04.1 for reference.</p>