From 2eaab69bafb1b4132b911e490cd47fab2ef1652d Mon Sep 17 00:00:00 2001 From: sleirsgoevy Date: Sun, 10 Dec 2017 21:55:49 +0300 Subject: [PATCH] Piped UML. --- bin/uml_run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/uml_run b/bin/uml_run index 023d5e5..6dbf9f4 100755 --- a/bin/uml_run +++ b/bin/uml_run @@ -1,5 +1,7 @@ #!/bin/bash -x echo "$1" > "$APP/uml_command" -TEMP="$APP" "$APP/uml/uml" root=/dev/root rw rootflags=/ rootfstype=hostfs init="$APP/uml/init" eth0=slirp,10.0.2.15,"$APP/uml/slirp" mem=${MEM}M quiet app="$APP" +mkfifo "$APP/fifo" +TEMP="$APP" "$APP/uml/uml" root=/dev/root rw rootflags=/ rootfstype=hostfs init="$APP/uml/init" eth0=slirp,10.0.2.15,"$APP/uml/slirp" mem=${MEM}M quiet app="$APP" < "$APP/fifo" > /dev/null 2>&1 +rm "$APP/fifo" rm "$APP/uml_command"