Skip to content

Instantly share code, notes, and snippets.

@lytsing
Created November 16, 2013 01:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lytsing/991ab69460587aa91aa5 to your computer and use it in GitHub Desktop.
try to use 360 wifi 2 for AP
diff --git a/ubuntu.sh b/ubuntu.sh
index eef4f74..29bd942 100755
--- a/ubuntu.sh
+++ b/ubuntu.sh
@@ -34,7 +34,7 @@ WIFI_HOME=~/.360wifi
#[1] Check whether we have 360 wifi inserted
echo "[*] Checking 360-wifi ... "
-result=$(lsusb | grep -e "148f:5370 Ralink Technology")
+result=$(lsusb | grep -e "148f:7601 Ralink Technology")
if [ $? -ne 0 ]; then
echo "[x] Please insert 360-wifi into the USB interface"
@@ -59,10 +59,10 @@ fi
# [3] install necessary packages
echo "[*] Installing necessary packages ... "
echo " -->[a] hostapd"
-sudo apt-get install hostapd > /dev/null
+sudo yum install -y hostapd > /dev/null
echo " -->[b] isc-dhcp-server"
-sudo apt-get install isc-dhcp-server > /dev/null
+sudo yum install -y dhcp > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment