/360wifi2-fedora-patch Secret
Created
November 16, 2013 01:26
Star
You must be signed in to star a gist
try to use 360 wifi 2 for AP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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