diff options
author | 2017-03-16 22:22:52 +0100 | |
---|---|---|
committer | 2017-03-19 17:56:48 +0100 | |
commit | b30093edfd4f92b32ba356ef5e62d9bd80a99584 (patch) | |
tree | 2975f1be8be51931f6fe4f83102e1b524e600818 /INSTALL/setup.d/40_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/setup.d/40_netboot')
-rw-r--r-- | INSTALL/setup.d/40_netboot | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/INSTALL/setup.d/40_netboot b/INSTALL/setup.d/40_netboot new file mode 100644 index 0000000..05d6f30 --- /dev/null +++ b/INSTALL/setup.d/40_netboot @@ -0,0 +1,15 @@ +#!/bin/bash + +# for network boot through tftp+nbd +apt-get install -y tftpd-hpa xnbd-server + +# adjust config file to have the server point to bitbake images deployment dir +sed -i -e "s#^\(TFTP_DIRECTORY=\).*\$#\1\"$XDT_BUILD/tmp/deploy/images\"#" /etc/default/tftpd-hpa + +# install specific scrips +mkdir -p /usr/local/bin +for x in $INSTDIR/tools/scripts_netboot/*; do + install --mode=755 $x /usr/local/bin/ +done + + |