summaryrefslogtreecommitdiffhomepage
path: root/once/custom.sh
blob: ace0e0594e55265d70326298d69fb5bec776ef95 (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
26
27
28
29
30
31
32
33
#!/bin/sh

if [ -z "$SYSROOT" ]; then
	echo '$SYSROOT is not set!'
	exit 2
fi

if ! [ -d "$SYSROOT" ]; then
	echo '$SYSROOT does not exist!'
	exit 2
fi

mkdir -p   "$SYSROOT"/tmp || exit 2
chmod 0777 "$SYSROOT"/tmp || exit 2

mkdir -p   "$SYSROOT"/var/log/ntctty || exit 2
chmod 0775 "$SYSROOT"/var/log/ntctty || exit 2

if ! [ -f /bin/libnettle.so ]; then
	ln -s libnettle.so.8 /bin/libnettle.so
fi

if ! [ -f /bin/libtinfo.so ]; then
	ln -s libtinfo.so.6 /bin/libtinfo.so
fi

if ! [ -f /bin/libtinfow.so ]; then
	ln -s libtinfow.so.6 /bin/libtinfow.so
fi

if [ -f /vendor.sh ]; then
	/vendor.sh
fi