File tree Expand file tree Collapse file tree 5 files changed +15
-46
lines changed Expand file tree Collapse file tree 5 files changed +15
-46
lines changed Original file line number Diff line number Diff line change 58
58
--
59
59
http://man.linuxde.net/sed
60
60
61
-
61
+ 正则:
62
+ --
63
+ http://www.blogjava.net/jasmine214--love/archive/2011/10/12/361040.html
62
64
63
65
###################################################一些说明##############################################################################
64
- 1.为防止manifest中key对应的修改的文件可能不止一个,所以没有把key-path配置成类似custom_branch_platform形式的配置文件
66
+
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function write_kl_file()
130
130
param_value_1=" $3 "
131
131
# 如果对应的键值是不同的,则如下方式更新[原因是本地kl文件可能是单项或者多项] 并将retflag置1;否则维持不变依据0+0+0==0
132
132
if [[ " $param_value_1 " x != " $key_value_1 " x || -n " $key_value_2 " ]]; then
133
- sed -i ' /' [[:space:]]$key_num [[:space:]]' /s/.*/' key' ' $key_num ' ' $param_value_1 ' /g' $param_file
133
+ sed -i ' /' ^ ' key\( [[:space:]]\)\+ ' $key_num [[:space:]]' /s/.*/' key' ' $key_num ' ' $param_value_1 ' /g' $param_file
134
134
debug_info " change " key $key_num $key_value_1 $key_value_2 " -->" key $key_num $param_value_1 " "
135
135
retflag=1
136
136
else
@@ -141,7 +141,7 @@ function write_kl_file()
141
141
param_value_2=" $4 "
142
142
# 如果对应的键值是不同的,则如下方式更新[原因是本地kl文件可能是单项或者多项] 并将retflag置1;否则维持不变依据0+0+0==0
143
143
if [[ " $param_value_1 " x != " $key_value_1 " x || " $param_value_2 " x != " $key_value_2 " x ]]; then
144
- sed -i ' /' [[:space:]]$key_num [[:space:]]' /s/.*/' key' ' $key_num ' ' $param_value_1 ' ' $param_value_2 ' /g' $param_file
144
+ sed -i ' /' ^ ' key\( [[:space:]]\)\+ ' $key_num [[:space:]]' /s/.*/' key' ' $key_num ' ' $param_value_1 ' ' $param_value_2 ' /g' $param_file
145
145
debug_info " change " key $key_num $key_value_1 $key_value_2 " -->" key $key_num $param_value_1 $param_value_2 " "
146
146
retflag=1
147
147
else
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function process_keyboard_layout()
86
86
case $CURENT_DEVICE in
87
87
" dolphin-cantv-h2" )
88
88
# TODO 改成文件名,然后统一处理路径问题
89
- local path=" $path_tmp /custom_ir_ ${irlabel} .kl"
89
+ local path=" $path_tmp /customer_ir_ ${irlabel} .kl"
90
90
;;
91
91
# TODO 638
92
92
# TODO z11
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ key 16 DEL
11
11
key 17 6
12
12
key 18 5
13
13
key 21 3
14
- #key 22 FUCK
15
- key 22 OK
14
+ #key 22 HELLO
15
+ key 22 MENU
16
16
key 23 INFO
17
- key 24 MENU
17
+ key 24 MAAENU
18
18
key 25 MEDIA_PLAY_PAUSE
19
19
key 26 DPAD_UP
20
20
key 28 POWER WAKE
21
21
key 65 SETTINGS
22
- key 66 WORLD
22
+ key 66 3
23
23
key 71 DPAD_LEFT
24
24
key 72 DPAD_DOWN
25
25
key 75 VOLUME_UP
@@ -32,3 +32,7 @@ key 91 APPS
32
32
key 92 MEDIA_NEXT
33
33
key 93 MEDIA_PREVIOUS
34
34
key 95 MOVIE
35
+ key 55 2
36
+ key 44 1
37
+ key 11 BACK
38
+ key 33 0 WAKE
You can’t perform that action at this time.
0 commit comments