File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN apt update && apt upgrade -y && \
9
9
libsdl1.2-dev xterm tar locales net-tools rsync sudo vim curl zstd \
10
10
liblz4-tool libssl-dev bc lzop libgnutls28-dev efitools git-lfs \
11
11
keychain pipx make ninja-build tmux xclip xsel iproute2 \
12
- bridge-utils iptables
12
+ bridge-utils iptables expect
13
13
14
14
# Install Neovim
15
15
COPY neovim-installer.sh /neovim-installer.sh
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments