summaryrefslogtreecommitdiff
path: root/Kernel/run
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/run')
-rwxr-xr-xKernel/run11
1 files changed, 8 insertions, 3 deletions
diff --git a/Kernel/run b/Kernel/run
index dc02ed80dc..a245b28f92 100755
--- a/Kernel/run
+++ b/Kernel/run
@@ -51,13 +51,18 @@ elif [ "$1" = "qgrub" ]; then
$SERENITY_PACKET_LOGGING_ARG \
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \
-device e1000,netdev=breh
-elif [ "$1" = "qtext" ]; then
- # ./run: qemu with serenity in text mode
+elif [ "$1" = "qcmd" ]; then
+ SERENITY_KERNEL_CMDLINE=""
+ for (( i=2; i<=$#; i++)); do
+ SERENITY_KERNEL_CMDLINE+="${!i} "
+ done
+ echo "Starting SerenityOS, Commandline: ${SERENITY_KERNEL_CMDLINE}"
+ # ./run: qemu with serenity with custom commandline
$SERENITY_QEMU_BIN \
$SERENITY_COMMON_QEMU_ARGS \
-device e1000 \
-kernel kernel \
- -append "${SERENITY_KERNEL_CMDLINE} text_debug"
+ -append "${SERENITY_KERNEL_CMDLINE}"
else
# ./run: qemu with user networking
$SERENITY_QEMU_BIN \