From 4721cebf34d7862b0783673f65fbb8b52750be46 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 8 May 2018 01:46:53 -0400 Subject: initial commit. --- once/custom.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 once/custom.sh (limited to 'once/custom.sh') diff --git a/once/custom.sh b/once/custom.sh new file mode 100755 index 0000000..c3d611a --- /dev/null +++ b/once/custom.sh @@ -0,0 +1,18 @@ +#!/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 0775 "$SYSROOT"/tmp || exit 2 + +if [ -f /vendor.sh ]; then + /vendor.sh +fi -- cgit v1.2.3