READMEL: kick-start commands

Conditionally run setup.sh in kick-start command instructions.

If you download a snapshot container it only contains the setup.sh.
Conditioning to the /scripts folder existence means repeatedly executing
the same commands doesn't execute the setup script repeatedly, but only
if it has not yet been run. You skip download steps which have already
been executed. The instructions provided are copy-paste anyway.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
pull/187/head
Paul Donald 2025-08-13 13:48:56 +02:00 committed by Paul Spooren
parent 7a2eace75e
commit 5b55c0301e
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ via CI.
```shell
docker run --rm -v "$(pwd)"/bin/:/builder/bin -it openwrt/sdk
# inside the Docker container
[ ! -d ./scripts ] && ./setup.sh
./scripts/feeds update packages
make defconfig
./scripts/feeds install tmate
@ -76,6 +77,7 @@ via CI.
```shell
docker run --rm -v "$(pwd)"/bin/:/builder/bin -it openwrt/imagebuilder
# inside the Docker container
[ ! -d ./scripts ] && ./setup.sh
make image PROFILE=generic PACKAGES=tmate
```
@ -108,6 +110,7 @@ additional files for the rootfs should be added there before building.
```shell
docker run --rm -it openwrt/rootfs
# inside the Docker container
[ ! -d ./scripts ] && ./setup.sh
mkdir /var/lock/
opkg update
opkg install tmate