Skip to content

Commit 810e9c6

Browse files
committed
More tweaks to tkldev-setup.
1 parent 7642d17 commit 810e9c6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

overlay/usr/local/sbin/tkldev-setup

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ info() { echo "INFO [$(basename $0)]: $@"; }
88
[[ -z "$DEBUG" ]] || set -x
99

1010
GIT_DEPTH=1
11+
APP=${1}
12+
[[ -n "$APP" ]] || APP="core"
1113

12-
RELEASE="${RELEASE:-debian/$(lsb_release -s -c)}"
13-
CODENAME="$(basename $RELEASE)"
14-
ARCH="${ARCH:-$(dpkg --print-architecture)}"
14+
distro="$(lsb_release -si | tr '[:upper:]' '[:lower:]')"
15+
[[ "$distro" == "turnkey" ]] && distro="debian"
16+
17+
export RELEASE="${RELEASE:-${distro}/$(lsb_release -s -c)}"
18+
export CODENAME="$(basename $RELEASE)"
19+
export ARCH="${ARCH:-$(dpkg --print-architecture)}"
1520

1621
IMAGES="http://mirror.turnkeylinux.org/turnkeylinux/images"
1722
FAB_PATH="/turnkey/fab"
@@ -45,7 +50,7 @@ clone_or_update turnkeylinux/buildtasks $BT_PATH
4550
clone_or_update turnkeylinux/tklbam-profiles /turnkey/tklbam-profiles
4651
clone_or_update turnkeylinux/cdroots $FAB_PATH/cdroots
4752
clone_or_update turnkeylinux/common $FAB_PATH/common
48-
clone_or_update turnkeylinux-apps/core $FAB_PATH/products/core
53+
clone_or_update turnkeylinux-apps/$APP $FAB_PATH/products/$APP
4954

5055
if [[ -f "$BT_PATH/config/common.cfg" ]]; then
5156
. $BT_PATH/config/common.cfg

0 commit comments

Comments
 (0)