Git init
[framework/system/sys-assert.git] / debian / libsys-assert-0.postinst
1 #!/bin/sh
2 # if [ ${USER} == "root" ]
3 # then
4    # Change file owner
5    # 1. libraries
6    # chown root:root /usr/lib/libsys-assert.so
7    # 2. executables
8    # 3. configurations
9    # 4. profile script
10    # chown root:root /etc/profile.d/setup_bs.sh
11
12 #fi
13 # Change file permissions
14 # 1. libraries
15 # chmod 644 /usr/lib/libsys-assert.so
16 # 2. executables
17 # 3. configurations
18 # 4. booting script
19 mkdir -p /opt/bs/core
20 chown root:5000 /opt/bs/core
21 chmod 775 /opt/bs/core
22
23 mkdir -p /opt/share/hidden_storage/SLP_debug
24 chown root:5000 /opt/share/hidden_storage/SLP_debug
25 chmod 755 /opt/share/hidden_storage
26 chmod 775 /opt/share/hidden_storage/SLP_debug
27
28 touch /opt/etc/.debugmode
29
30 # added below for dbg package
31 DBG_DIR=/home/developer/sdk_tools/usr/lib/debug
32
33 if [ -L /usr/lib/debug ]
34 then
35         echo "already exists"
36         exit
37 fi
38
39 mkdir -p ${DBG_DIR}
40 if [ -d /usr/lib/debug ]
41 then
42         cp -a /usr/lib/debug/* ${DBG_DIR}
43         rm -rf /usr/lib/debug
44 fi
45
46 ln -sf ${DBG_DIR} /usr/lib/debug