mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
New products default to disabling mDNS
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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_
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user