before editing 900i and 1000i to work on 120hz capped sony crt
This commit is contained in:
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
IFACE="wlan1"
|
||||
SSID="vegeta black"
|
||||
PSK="supermarioinreallife"
|
||||
CHANNEL="6"
|
||||
AP_IP="192.168.43.1"
|
||||
|
||||
[ "$(id -u)" -ne 0 ] && exit 1
|
||||
|
||||
echo "[*] Hard reset of Wi-Fi stack..."
|
||||
|
||||
svc wifi disable
|
||||
killall hostapd dnsmasq wpa_supplicant wificond 2>/dev/null
|
||||
sleep 3
|
||||
|
||||
# Delete the interface completely
|
||||
iw dev $IFACE del 2>/dev/null
|
||||
sleep 1
|
||||
|
||||
# Create a fresh AP interface
|
||||
iw phy phy0 interface add $IFACE type __ap
|
||||
sleep 1
|
||||
|
||||
ip link set $IFACE down
|
||||
ip addr flush dev $IFACE
|
||||
ip link set $IFACE up
|
||||
sleep 1
|
||||
|
||||
# Very simple hostapd config
|
||||
cat > /tmp/hostapd.conf <<EOF
|
||||
interface=$IFACE
|
||||
driver=nl80211
|
||||
ssid=$SSID
|
||||
hw_mode=g
|
||||
channel=$CHANNEL
|
||||
wpa=2
|
||||
wpa_passphrase=$PSK
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
rsn_pairwise=CCMP
|
||||
EOF
|
||||
|
||||
echo "[*] Starting hostapd (watch for errors)..."
|
||||
hostapd /tmp/hostapd.conf
|
||||
Reference in New Issue
Block a user