forked from dan/liminix
create cdc-ncm module
This commit is contained in:
parent
58cd007ccc
commit
530b4080c9
|
@ -20,7 +20,7 @@ in rec {
|
|||
};
|
||||
|
||||
imports = [
|
||||
# ../modules/wlan.nix
|
||||
../modules/cdc-ncm
|
||||
../modules/network
|
||||
../modules/vlan
|
||||
../modules/ssh
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
config = {
|
||||
kernel.config = {
|
||||
USB_NET_HUAWEI_CDC_NCM = "y";
|
||||
USB_USBNET = "y";
|
||||
USB_SERIAL = "y";
|
||||
USB_SERIAL_OPTION = "y";
|
||||
};
|
||||
|
||||
# an ncm ethernet adaptor does
|
||||
# * usb modeswitch
|
||||
# * AT commands
|
||||
# and then behaves like a link.
|
||||
|
||||
# we could identify by vid:pid but that's a bit awkward
|
||||
# if there's more than one present. IMEI?
|
||||
|
||||
# https://stackoverflow.com/questions/5477882/how-to-i-detect-whether-a-tty-belonging-to-a-gsm-3g-modem-is-a-data-or-control-p
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue