common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / agl-systemd / tool_9E_SI / setup_refhw.sh
1 #!/bin/bash
2 #
3 # @copyright Copyright (c) 2019 TOYOTA MOTOR CORPORATION.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
18 #to expand msg_max
19 sysctl -w fs.mqueue.msg_max=512
20
21 # device detection
22 echo -n "TARGET_BOARD=" > /tmp/udev_device.env
23 cat /proc/device-tree/model | cut -d " " -f 2 >> /tmp/udev_device.env
24 echo >> /tmp/udev_device.env
25 echo "UID=$INIT_UID" >> /tmp/udev_device.env
26 echo "GID=$INIT_GID" >> /tmp/udev_device.env
27 echo "BRAND=$VEHICLEPARAMETERLIBRARY_BRAND" >> /tmp/udev_device.env
28 echo "AREA=$VEHICLEPARAMETERLIBRARY_AREA" >> /tmp/udev_device.env
29
30 # Start: Workaround for release ###############################################
31 ## Sprint 29 To make WebService can update contents.
32 #chown -R agl:agl /usr/agl/data/electronicom
33 ## For btservice initial data.
34 #chown -R agl:agl /nv/backup/D_BK_CA_BT_MANAGEMENT 
35 ## Sprint 29 PFDRECThread
36 mkdir -p /ramd/BS/ns/backup_manager/rwdata
37 mkdir -p /ramd/BS/ss/logger_service/rwdata/frameworkunifiedlog/diag
38 restorecon -R /ramd
39 #chmod 777 /ramd/BS/ss/logger_service/rwdata/frameworkunifiedlog/diag
40 ## Sprint 29 communication
41 #chmod -R 777 /home/root/.app_can_d
42 # TODO:for bluetooth_service
43 #chmod 777 /usr/agl/share
44
45 #if `df -T / | grep nfs > /dev/null`; then
46 #cp /sbin/insmod.kmod /tmp/insmod.kmod
47 #ln -s -f /tmp/insmod.kmod /sbin/insmod
48 #setcap cap_sys_module+ep /tmp/insmod.kmod
49 #fi
50
51 ## Sprint 32 Positioning
52 #chmod 777 /dev/ttySC3
53 #chmod -R 777 /home/root/.app_gps_cmd_d
54
55 ## Sprint 37 BUG17P-9 clock
56 ln -f -s /tmp/bs/clock/localtime /etc/localtime
57
58 # END: Workaround for release #################################################
59
60 # permission setting
61 # wait for weston is properly launched
62 #until [ -e /run/user/0/wayland-0 ]
63 #do
64 #       usleep 50000
65 #done
66 #chmod 777 /run/user/0/wayland-0
67
68 mkdir /tmp/shm
69
70 chmod 777 /tmp/shm
71 chmod 666 /dev/mqueue/IccSnd
72 #chmod 777 /dev/mqueue/*
73 #chmod 777 /dev/mqueue/NS_NPPService
74 #chmod 777 /run/user/0
75
76 rm -rf /nv/romaccess
77 rm /dev/shm/lockfile
78
79
80
81
82 export PATH=`echo -n ${PATH} | sed 's|/tmp:||'`
83