hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
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
if [ -f /etc/profile.d/RkEnv.sh ]; then
   source /etc/profile.d/RkEnv.sh
else
   echo "/etc/profile.d/RkEnv.sh Not Found ... ignore"
   export HOME=/oem
   export PATH=$PATH:/oem/bin:/oem/usr/bin:/oem/sbin
   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/oem/usr/lib:/oem/lib
fi
 
case "$1" in
   start)
       [ -f /oem/RkLunch.sh ] && source /oem/RkLunch.sh
       #recovery test
       if [ -e "/oem/rockchip_test/auto_reboot.sh" ]; then
           mkdir /data/cfg/rockchip_test
           cp /oem/rockchip_test/auto_reboot.sh /data/cfg/rockchip_test
           source /data/cfg/rockchip_test/auto_reboot.sh &
       fi
       ;;
   stop)
       [ -f /oem/RkLunch-stop.sh ] && source /oem/RkLunch-stop.sh
       printf "stop finished\n"
       ;;
   *)
       echo "Usage: $0 {start|stop}"
       exit 1
       ;;
esac
exit 0