-
Notifications
You must be signed in to change notification settings - Fork 11
/
launch.sh
executable file
·34 lines (28 loc) · 969 Bytes
/
launch.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
#!/usr/bin/bash
if [ ! -f "/data/no_ota_updates" ]; then
/usr/bin/touch /data/no_ota_updates
fi
ALIAS_CHECK=$(/usr/bin/grep gitpull /system/comma/home/.bash_profile)
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 [ ! -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
fi
if [ ! -f "/data/KRSet" ]; then
setprop persist.sys.locale ko-KR
setprop persist.sys.local ko-KR
setprop persist.sys.timezone Asia/Seoul
/usr/bin/touch /data/KRSet
fi
export PASSIVE="0"
exec ./launch_chffrplus.sh