forked from Fishwaldo/sophgo-sg200x-debian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildroot: kvm_system: do not start NanoKVM-Server
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
.../common/patches/buildroot/0001-nanokvm-server-kvm_system-do-not-start-NanoKVM-Serve.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
From 6385524c8fe8e03be966987e0a146160f1baa877 Mon Sep 17 00:00:00 2001 | ||
From: scpcom <[email protected]> | ||
Date: Tue, 4 Feb 2025 03:01:17 +0100 | ||
Subject: [PATCH] nanokvm-server: kvm_system: do not start NanoKVM-Server | ||
|
||
--- | ||
...m_system-do-not-start-NanoKVM-Server.patch | 36 +++++++++++++++++++ | ||
1 file changed, 36 insertions(+) | ||
create mode 100644 package/nanokvm-server/0021-kvm_system-do-not-start-NanoKVM-Server.patch | ||
|
||
diff --git a/package/nanokvm-server/0021-kvm_system-do-not-start-NanoKVM-Server.patch b/package/nanokvm-server/0021-kvm_system-do-not-start-NanoKVM-Server.patch | ||
new file mode 100644 | ||
index 0000000000..d39a08ae57 | ||
--- /dev/null | ||
+++ b/package/nanokvm-server/0021-kvm_system-do-not-start-NanoKVM-Server.patch | ||
@@ -0,0 +1,36 @@ | ||
+From ee222a9b90b0a80e1a0ddad9f5bb05be39f225d0 Mon Sep 17 00:00:00 2001 | ||
+From: scpcom <[email protected]> | ||
+Date: Tue, 4 Feb 2025 02:56:51 +0100 | ||
+Subject: [PATCH] kvm_system: do not start NanoKVM-Server | ||
+ | ||
+--- | ||
+ .../kvm_system/main/lib/system_init/system_init.cpp | 13 ------------- | ||
+ 1 file changed, 13 deletions(-) | ||
+ | ||
+diff --git a/support/kvm_system/main/lib/system_init/system_init.cpp b/support/kvm_system/main/lib/system_init/system_init.cpp | ||
+index f0c4cd3..7e5f57d 100644 | ||
+--- a/support/kvm_system/main/lib/system_init/system_init.cpp | ||
++++ b/support/kvm_system/main/lib/system_init/system_init.cpp | ||
+@@ -149,19 +149,6 @@ void init_upadte(void) | ||
+ update_resolv_conf(); | ||
+ } | ||
+ } | ||
+- | ||
+- // libmaixcam_lib.so | ||
+- if(access("/kvmapp/kvm_system/dl_lib/libmaixcam_lib.so", F_OK) == 0){ | ||
+- // exist | ||
+- system("cp -f /kvmapp/kvm_system/dl_lib/libmaixcam_lib.so /kvmapp/server/dl_lib"); | ||
+- } else { | ||
+- printf("kvm_system not exist lib!\n"); | ||
+- } | ||
+- system("sync"); | ||
+- system("killall NanoKVM-Server"); | ||
+- system("rm -r /tmp/server"); | ||
+- system("cp -r /kvmapp/server /tmp/"); | ||
+- system("/tmp/server/NanoKVM-Server &"); | ||
+ } | ||
+ | ||
+ void first_start(void) | ||
+-- | ||
+2.34.1 | ||
+ | ||
-- | ||
2.34.1 | ||
|