blob: 908d980d7800d82bfb5d4101f30eb26118a36557 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/bin/sh
append DRIVERS "mt7612e"
. /lib/wifi/ralink_common.sh
prepare_mt7612e() {
prepare_ralink_wifi mt7612e
}
scan_mt7612e() {
scan_ralink_wifi mt7612e mt76x2e
}
disable_mt7612e() {
disable_ralink_wifi mt7612e
}
enable_mt7612e() {
enable_ralink_wifi mt7612e mt76x2e
}
detect_mt7612e() {
# detect_ralink_wifi mt7612e mt76x2e
ssid=mt7612e #-`ifconfig eth0 | grep HWaddr | cut -c 51- | sed 's/://g'`
cd /sys/module/
[ -d $module ] || return
[ -e /etc/config/wireless ] && return
cat <<EOF
config wifi-device mt7612e
option type mt7612e
option vendor ralink
option band 5G
option channel 0
option autoch 2
config wifi-iface
option device mt7612e
option ifname rai0
option network lan
option mode ap
option ssid $ssid
option encryption psk2
option key 12345678
EOF
}
|