Skip to content

Commit 2ec1f02

Browse files
committed
execute
1 parent 61127ea commit 2ec1f02

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Dockerfile-Ubuntu-22.04

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt update && apt upgrade -y && \
99
libsdl1.2-dev xterm tar locales net-tools rsync sudo vim curl zstd \
1010
liblz4-tool libssl-dev bc lzop libgnutls28-dev efitools git-lfs \
1111
keychain pipx make ninja-build tmux xclip xsel iproute2 \
12-
bridge-utils iptables
12+
bridge-utils iptables expect
1313

1414
# Install Neovim
1515
COPY neovim-installer.sh /neovim-installer.sh

execute.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/expect -f
2+
3+
#spawn bash -c "cd poky && source oe-init-build-env && runqemu qemuarm nographic"
4+
#expect "*login:*"
5+
#send "root"
6+
#interact
7+
8+
spawn bash -c "cd poky && source oe-init-build-env && runqemu qemuarm nographic"
9+
10+
# Wait for login prompt exactly
11+
expect "*login: "
12+
send "root\r"
13+
14+
# Wait for the root shell prompt inside qemuarm (usually ends with #)
15+
expect -re {root@.*# }
16+
17+
# Send your command
18+
send "hello-world\r"
19+
20+
# Optional: interact to keep session open
21+
#interact
22+

0 commit comments

Comments
 (0)