| 12345678910111213141516171819202122232425262728293031323334353637 |
- #!/bin/sh
- export PATH=$PATH:/usr/local/bin
- #/usr/libexec/wifiFirmwareLoader -f | tail -1 | cut -d" " -f6
- launchctl unload /System/Library/LaunchDaemons/com.apple.wifid.plist
- launchctl unload /System/Library/LaunchDaemons/com.apple.BTServer.plist
- launchctl remove com.apple.SwitchBoard
- #launchctl unload /System/Library/LaunchDaemons/com.apple.CommCenter.plist
- wl ver
- /usr/libexec/wifiFirmwareLoader -f
- a=$(/usr/sbin/ioreg -w0 -l -rd1 -n AppleBCMWLANCore | grep ModuleDictionary | awk '{print $4}' | cut -d'=' -f2 | sed 's/\./\\./g')
- echo $a
- vendor=$(/usr/sbin/ioreg -w0 -l -rd1 -n AppleBCMWLANCore | grep ModuleDictionary | awk '{print $5}' | cut -d"\"" -f1)
- echo $vendor
- cat /AppleInternal/Diags/WiFiFirmware/J34/WifiFirmware.prm | grep $a | grep $vendor
- b=$(cat /AppleInternal/Diags/WiFiFirmware/J34/WifiFirmware.prm | grep "^$a" | grep "$vendor" | awk '{print $4}')
- echo $b
- c=$(cat /AppleInternal/Diags/WiFiFirmware/J34/WifiFirmware.prm | grep "^$a" | grep "$vendor" | awk '{print $5}')
- echo $c
- ~/CoEx/nvrm_mod.sh J34 $c
- /usr/libexec/wifiFirmwareLoader -N /AppleInternal/Diags/WiFiFirmware/J34/$c -F /AppleInternal/Diags/WiFiFirmware/J34/$b "mfg"
- sleep 1
- wl ver; wl revinfo;
- wl down; wl cur_etheraddr 00:00:00:C0:FF:EE; wl country ALL; wl mpc 0;
- wl mimo_preamble 0; wl mimo_bw_cap 1;
- wl stbc_tx 0; wl stbc_rx 0; wl up; wl isup;
- echo "init done"
- powerctrl Factor1=1
- /sbin/mount -uw /
- mkdir /etc/bluetool
- cp ~/CoEx/runme/*.txt /etc/bluetool
|