-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcab_tu_coex.sh
More file actions
executable file
·61 lines (53 loc) · 1.15 KB
/
cab_tu_coex.sh
File metadata and controls
executable file
·61 lines (53 loc) · 1.15 KB
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
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
syms="\
ssv_initmac \
ssv6xxx_sdio_driver \
stacfgpath \
cfgfirmwarepath \
ssv_cfg \
ssv6xxx_exit \
ssv6xxx_init \
ssv6xxx_hci_deregister \
ssv6xxx_dev_remove \
ssv6xxx_sdio_exit \
ssv6xxx_sdio_init \
ssvdevice_init \
ssvdevice_exit \
ssv6xxx_hci_exit \
ssv6xxx_hci_init \
cfg_cmds \
ssv6xxx_dev_probe \
ssv6xxx_hci_register \
generic_wifi_exit_module \
generic_wifi_init_module \
ssv\" \
"
syms2="\
ssv6xxx_sdio_probe \
ssv6xxx_sdio_remove \
ssv6xxx_sdio_suspend \
ssv6xxx_sdio_resume \
"
syms3="\
SSV6XXX_SDIO \
"
for i in $syms;
do
echo "Replacing $i to tu_$i\n"
find . -name "*.[ch]"| xargs sed -i "s/$i/tu_$i/g"
done
echo "Restoring tu_ssv_cfg.h to ssv_cfg.h\n"
find . -name "*.[ch]"| xargs sed -i "s/\"tu_ssv_cfg\.h\"/\"ssv_cfg\.h\"/g"
find . -name "*.[ch]"| xargs sed -i "s/<tu_ssv_cfg\.h>/\"ssv_cfg\.h\"/g"
for i in $syms2;
do
echo "Replacing $i to tu_$i\n"
find . -name "*.[ch]"| xargs sed -i "s/$i/tu_$i/g"
done
echo "Replacing SSV WLAN driver to TU SSV WLAN driver\n"
find . -name "*.[ch]"| xargs sed -i "s/SSV WLAN driver/TU SSV WLAN driver/g"
for i in $syms3;
do
echo "Replacing $i to TU_$i\n"
find . -name "*.[ch]"| xargs sed -i "s/$i/TU_$i/g"
done