1#!/bin/sh
2
3[ ! -f $(dirname "$0")/sp_uuid_list.txt ] && \
4	{ echo "Error: missing SP UUID list"; exit 1; }
5
6if ! grep -qs 'arm-ffa-user' /proc/modules; then
7	insmod $(dirname "$0")/arm-ffa-user.ko uuid_str_list=$(cat $(dirname "$0")/sp_uuid_list.txt)
8fi
9
10if ! grep -qs 'debugfs' /proc/mounts; then
11	mount -t debugfs debugfs /sys/kernel/debug/
12fi
13