-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfar.sh
executable file
·31 lines (31 loc) · 936 Bytes
/
far.sh
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
#!/bin/bash
#!/bin/bash
echo 'beginning arch conversions'
cd arch
find . -type f \( -iname \*.h \
-o -iname \*.c \) \
| parallel sed -i 's/early_suspend/power_suspend/' {} \;
echo 'one finished'
sleep 1
find . -type f \( -iname \*.h \
-o -iname \*.c \) \
| parallel sed -i 's/earlysuspend/powersuspend/' {} \;
echo 'two finished'
sleep 1
find . -type f \( -iname \*.h \
-o -iname \*.c \) \
| parallel sed -i 's/late_resume/power_resume/' {} \;
echo 'three finished'
sleep 1
find . -type f \( -iname \*.h \
-o -iname \*.c \) \
| parallel sed -i 's/CONFIG_HAS_EARLYSUSPEND/CONFIG_POWERSUSPEND/' {} \;
sleep 1
find . -type f \( -iname \*.h \
-o -iname \*.c \) \
| parallel sed -i 's/CONFIG_EARLYSUSPEND/CONFIG_POWERSUSPEND/' {} \;
sleep 1
find . -type f \( -iname \*.h \
-o -iname \*.c \) \
| parallel sed -i 's/CONFIG_HAS_POWERSUSPEND/CONFIG_POWERSUSPEND/' {} \;
echo 'finished arch'