diff options
author | 2017-03-16 22:22:52 +0100 | |
---|---|---|
committer | 2017-03-19 17:56:48 +0100 | |
commit | b30093edfd4f92b32ba356ef5e62d9bd80a99584 (patch) | |
tree | 2975f1be8be51931f6fe4f83102e1b524e600818 /INSTALL/tools/scripts_netboot | |
parent | a41c6fae3bf4a08edca7bde0b3dd3ef2ce32b669 (diff) |
setup: split setup script in multiple parts
Instead of having a monolithic script suitable for many features,
this commit splits the main setup file in elementary scripts associated
to different features:
- Yocto build (bitbake deps)
- Bitbake Toaster
- Network boot
- SDK
- X11 Tools
- Documentation tools support
Change-Id: I3d08e32d6b887468e533bee311220ddb91da1dc1
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'INSTALL/tools/scripts_netboot')
-rwxr-xr-x | INSTALL/tools/scripts_netboot/run_xnbd_server | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/INSTALL/tools/scripts_netboot/run_xnbd_server b/INSTALL/tools/scripts_netboot/run_xnbd_server new file mode 100755 index 0000000..190301d --- /dev/null +++ b/INSTALL/tools/scripts_netboot/run_xnbd_server @@ -0,0 +1,16 @@ +#!/bin/bash + +. /etc/xdtrc + +MACHINE=${1:-porter} +IMAGE=${2:-${XDT_BUILD}/tmp/deploy/images/${MACHINE}/agl-demo-platform-crosssdk-${MACHINE}.ext4} + +echo "Using MACHINE=$MACHINE IMAGE=$IMAGE" + +[[ ! -f $IMAGE ]] && { echo "Invalid image $IMAGE"; exit 1; } + +REALIMG=$(realpath $IMAGE) +[[ ! -f ${REALIMG}.bak ]] && cp -v ${REALIMG} ${REALIMG}.bak + +sudo systemctl restart tftpd-hpa +sudo xnbd-server --target --lport 10809 $IMAGE |