Created
May 2, 2019 14:16
-
-
Save elupus/b926858a0cfb1f055be81509500b4032 to your computer and use it in GitHub Desktop.
Setup of e3372 modem on pfsense
This file contains hidden or 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
# /usr/local/share/usb_modeswitch/12d1:1f01 | |
# Huawei E353 (3.se) and others | |
TargetVendor=0x12d1 | |
TargetProductList="14db,14dc" | |
HuaweiNewMode=1 |
This file contains hidden or 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
#/bin/sh | |
# /usr/local/bin/e3372.sh | |
timeout 10 usb_modeswitch -v 12d1 -p 1f01 -J -D -w 5 |
This file contains hidden or 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
#12d1:1f01 | |
# /usr/local/etc/devd/e3372h.conf | |
attach 20 { | |
match “vendor” “0x12d1”; | |
match “product” “0x1f01”; | |
action “/usr/local/bin/e3372.sh”; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment