summaryrefslogtreecommitdiff
path: root/recipes-bsp/binary-drivers/linux-driver-package/nvfb
blob: e5f45023b4b94661d70f9fecc3abf511c9a15e8a (plain)
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
#!/bin/sh
#"specific first-boot script"

nvexec() {
	RET=0
	if [ ! -e /etc/nv/nvfirstboot ]; then
		RET=0
	else
		echo "/usr/lib/arm-linux-gnueabihf/tegra" >> /etc/ld.so.conf
		echo "/usr/lib/arm-linux-gnueabihf/tegra-egl" >> /etc/ld.so.conf

		ldconfig
		rm -rf /etc/nv/nvfirstboot
	fi
	exit $RET
}

case "$1" in
  start)
    nvexec
    exit 0
    ;;
  *)
    exit 1
esac