huangcm
2025-09-01 53d8e046ac1bf2ebe94f671983e3d3be059df91a
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
#!/bin/sh
 
source send_cmd_pipe.sh
source script_parser.sh
source log.sh
 
LOG_TAG="hdmitester"
 
module_count=`script_fetch "hdmi" "module_count"`
if [ $module_count -gt 0 ]; then
   for i in $(seq $module_count); do
       key_name="module"$i"_path"
       module_path=`script_fetch "hdmi" "$key_name"`
       if [ -n "$module_path" ]; then
           LOGD "insmod $module_path"
           insmod "$module_path"
           if [ $? -ne 0 ]; then
               LOGE "insmod $module_path faile!"
               exit 1
           fi
       fi
   done
fi
 
sleep 3
 
device_name=`script_fetch "hdmi" "device_name"`
hdmitester $* "$device_name" &
exit 0
SEND_CMD_PIPE_FAIL $3