forked from saj0vie/wififirmwareupdater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wifioutput
42 lines (23 loc) · 818 Bytes
/
wifioutput
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
echo "After this command is ran, screenshot the output and send it to u/saj0vie. This checks which wifi firmware your device uses."
sleep 3
echo "Checking for wifiFirmwareLoaderLegacy"
sleep 3
legacyFile="/usr/libexec/wifiFirmwareLoaderLegacy"
if [ -e $legacyFile ] ;
then
echo "wifiFirmwareLoaderLegacy does exist. This should only happen on iPhone 5s."
sleep 1
echo "Reading for which firmware to use..."
sleep 1
/usr/libexec/wifiFirmwareLoaderLegacy -f
echo "Send the output created above to u/saj0vie."
exit 0
else
echo "wifiFirmwareLoaderLegacy doesn't exist. This is normal because only older iPhone 5s models have this."
sleep 1
echo "Reading for which firmware to use..."
sleep 1
/usr/libexec/wifiFirmwareLoader -f
echo "Send the output created above to u/saj0vie."
exit 0
fi