From 9d6f6f6e8c900d1b73d5d7d5df3a94e844ebb3f1 Mon Sep 17 00:00:00 2001 From: k8188219 Date: Fri, 20 Jan 2023 11:49:41 +0800 Subject: [PATCH 1/3] Rename busybox to busybox.js --- bin/{busybox => busybox.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename bin/{busybox => busybox.js} (100%) diff --git a/bin/busybox b/bin/busybox.js similarity index 100% rename from bin/busybox rename to bin/busybox.js From 9df3a29f04084fea08b9fabe5890956cd4e8b7af Mon Sep 17 00:00:00 2001 From: k8188219 Date: Fri, 20 Jan 2023 11:53:42 +0800 Subject: [PATCH 2/3] Update console.js --- js/console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/console.js b/js/console.js index 02c6480..c75b369 100644 --- a/js/console.js +++ b/js/console.js @@ -103,12 +103,12 @@ require(["js/term.js-0.0.7/src/term.js"], function () { 'pid': 0, 'cookie': 0, 'command': 'spawn', - 'file': 'bin/busybox', + 'file': 'bin/busybox.js', 'args': ['/bin/sh'] }); } } else if (e.data.command == 'spawn') { - spawn('bin/busybox', e.data); // TODO: process e.data.file + spawn('bin/busybox.js', e.data); // TODO: process e.data.file } }; From 82ce20326c6b7ec3db35251ba73647ec47cf50e8 Mon Sep 17 00:00:00 2001 From: k8188219 Date: Fri, 20 Jan 2023 11:59:13 +0800 Subject: [PATCH 3/3] Update console.js --- js/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/console.js b/js/console.js index c75b369..e5b1fd5 100644 --- a/js/console.js +++ b/js/console.js @@ -99,7 +99,7 @@ require(["js/term.js-0.0.7/src/term.js"], function () { } else { receivedServiceVersion = true; term.write(e.data.text.replace('\n', '\r\n')); - spawn('bin/busybox', { + spawn('bin/busybox.js', { 'pid': 0, 'cookie': 0, 'command': 'spawn',