Matches ctl version to upstream

This commit is contained in:
2026-03-28 20:28:22 +08:00
parent 848daefffe
commit ecceff225f
25 changed files with 591 additions and 159 deletions

28
clitools/README Normal file
View File

@@ -0,0 +1,28 @@
## For development workflow
Run this on device
```bash
while true; do nc -l -p 1234 -e sh; done
```
Run this script on the dev machine
```bash
#!/bin/bash
make build
SIZE=$(wc -c < ./bin/ctl-linux-aarch64-dev)
(
echo 'base64 -d > /var/ctl <<'"'"'EOF'"'"''
pv -s "$SIZE" < ./bin/ctl-linux-aarch64-dev | base64
echo 'EOF'
echo 'chmod +x /var/ctl'
echo '/var/ctl create config > /var/abc.yaml'
echo "/var/ctl internal run-step $1 -c /var/abc.yaml 2>&1"
) | nc 10.0.0.10 1234
```
And use it like this
```bash
./send.sh start_crio
```