forked from crops/yocto-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distro-entry.sh
executable file
·23 lines (21 loc) · 989 Bytes
/
distro-entry.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Copyright (C) 2019 Intel Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# This entry point is so that we can do distro specific changes to the launch.
if grep -q CentOS /etc/*release; then
# This is so that tar >= 1.28 can be used, which is required to pass the
# sanity checks as of poky commit 2c7624c17e43f9215cf7dcebf7258d28711bc3ce.
. /opt/poky/3.0/environment-setup-x86_64-pokysdk-linux || exit 1
fi
exec "$@"