forked from route66-tech/openpilot-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch_openpilot.sh
executable file
·38 lines (32 loc) · 1.05 KB
/
launch_openpilot.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
32
33
34
35
36
37
#!/usr/bin/bash
ALIAS_CHECK=$(/usr/bin/grep gitpull /system/comma/home/.bash_profile)
GET_PROP1=$(getprop persist.sys.locale)
GET_PROP2=$(getprop persist.sys.local)
GET_PROP3=$(getprop persist.sys.timezone)
if [ "$ALIAS_CHECK" == "" ]; then
sleep 3
mount -o remount,rw /system
echo "alias gi='/data/openpilot/gitpull.sh'" >> /system/comma/home/.bash_profile
mount -o remount,r /system
fi
if [ "$GET_PROP1" != "ko-KR" ]; then
setprop persist.sys.locale ko-KR
fi
if [ "$GET_PROP2" != "ko-KR" ]; then
setprop persist.sys.local ko-KR
fi
if [ "$GET_PROP3" != "Asia/Seoul" ]; then
setprop persist.sys.timezone Asia/Seoul
fi
if [ ! -f "/system/fonts/opensans_regular.ttf" ]; then
sleep 3
mount -o remount,rw /system
cp -rf /data/openpilot/selfdrive/assets/fonts/opensans* /system/fonts/
cp -rf /data/openpilot/selfdrive/assets/addon/font/fonts.xml /system/etc/fonts.xml
chmod 644 /system/etc/fonts.xml
chmod 644 /system/fonts/opensans*
mount -o remount,r /system
reboot
fi
export PASSIVE="0"
exec ./launch_chffrplus.sh