mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-29 22:56:45 +08:00
feat(otg): 增加 libcomposite 自动加载兜底
This commit is contained in:
@@ -397,6 +397,10 @@ impl OtgService {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if let Err(e) = super::configfs::ensure_libcomposite_loaded() {
|
||||
warn!("Failed to ensure libcomposite is available: {}", e);
|
||||
}
|
||||
|
||||
// Check if OTG is available
|
||||
if !Self::is_available() {
|
||||
let error = "OTG not available: ConfigFS not mounted or no UDC found".to_string();
|
||||
|
||||
Reference in New Issue
Block a user