From 5b55c0301ec4b9ebac19352f5642a7d044db642a Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Wed, 13 Aug 2025 13:48:56 +0200 Subject: [PATCH] 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 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8da86ab..ddc6d47 100644 --- a/README.md +++ b/README.md @@ -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