#!/bin/sh /etc/rc.common | |
START=12 | |
start() { | |
if [ -e /dev/tee0 ] && [ ! -e /data/tee ]; then | |
mkdir -p /data/tee | |
if [ -e /etc/selinux ]; then | |
restorecon -r /data/tee | |
fi | |
fi | |
if [ -e /etc/selinux ]; then | |
restorecon -r /dev/tee0 /dev/teepriv0 | |
fi | |
echo "Start OPTEE supplicant" | |
tee-supplicant & | |
} |