Blame once/custom.sh

4721ce
#!/bin/sh
4721ce
4721ce
if [ -z "$SYSROOT" ]; then
4721ce
	echo '$SYSROOT is not set!'
4721ce
	exit 2
4721ce
fi
4721ce
4721ce
if ! [ -d "$SYSROOT" ]; then
4721ce
	echo '$SYSROOT does not exist!'
4721ce
	exit 2
4721ce
fi
4721ce
4721ce
mkdir -p   "$SYSROOT"/tmp || exit 2
1912f2
chmod 0777 "$SYSROOT"/tmp || exit 2
4721ce
2b6df1
mkdir -p   "$SYSROOT"/var/log/ntctty || exit 2
2b6df1
chmod 0775 "$SYSROOT"/var/log/ntctty || exit 2
2b6df1
677771
if ! [ -f /bin/libnettle.so ]; then
677771
	ln -s libnettle.so.8 /bin/libnettle.so
677771
fi
677771
677771
if ! [ -f /bin/libtinfo.so ]; then
677771
	ln -s libtinfo.so.6 /bin/libtinfo.so
677771
fi
677771
677771
if ! [ -f /bin/libtinfow.so ]; then
677771
	ln -s libtinfow.so.6 /bin/libtinfow.so
677771
fi
677771
4721ce
if [ -f /vendor.sh ]; then
4721ce
	/vendor.sh
4721ce
fi