New products default to disabling mDNS

This commit is contained in:
BuGu
2025-03-20 17:42:53 +08:00
parent 7f305ae3cf
commit 57d88d7889
3 changed files with 18 additions and 12 deletions

View File

@@ -34,18 +34,20 @@ uint8_t get_hdmi_version()
} }
} }
void test_ue_detecte() void Production_testing_patch(void)
{ {
if (access("/tmp/S49kvmtest", F_OK) == 0){ // Product UE version detecte
printf("ue patch test\n"); if(get_hdmi_version() == 2){
if(get_hdmi_version() == 2){ printf("ue_patch_state = 1;\n");
printf("ue_patch_state = 1;\n"); kvm_oled_state.ue_patch_state = 1;
kvm_oled_state.ue_patch_state = 1; } else {
} else { printf("ue_patch_state = 0;\n");
printf("ue_patch_state = 0;\n"); kvm_oled_state.ue_patch_state = 0;
kvm_oled_state.ue_patch_state = 0;
}
} }
// New products default to disabling mDNS functionality
system("rm -f /etc/init.d/S50ssdpd");
system("sync");
} }
void new_app_init(void) void new_app_init(void)

View File

@@ -4,6 +4,6 @@
void new_img_init(void); void new_img_init(void);
void new_app_init(void); void new_app_init(void);
void test_ue_detecte(); void Production_testing_patch(void);
#endif // SYSTEM_INIT_H_ #endif // SYSTEM_INIT_H_

View File

@@ -196,7 +196,11 @@ int main(int argc, char* argv[])
new_app_init(); new_app_init();
} }
test_ue_detecte(); // only for production testing
if (access("/tmp/S49kvmtest", F_OK) == 0){
printf("Production testing patch\n");
Production_testing_patch();
}
system("sync"); system("sync");