Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
best directory to lte ndis startup script?
« previous
next »
Print
Pages: [
1
]
Author
Topic: best directory to lte ndis startup script? (Read 1460 times)
eMdzeJ
Newbie
Posts: 1
Karma: 0
best directory to lte ndis startup script?
«
on:
September 28, 2020, 06:21:15 am »
I recently migrated from pfsense. My WAN connection is LTE Huawei E3372 in stick mode with disabled CD-ROM and SD card modes.
In pfsense I have startup script to set APN in NDIS mode - You can't do that from GUI. It's very simple script, just 2 lines (set APN)
#/bin/sh
echo 'AT^NDISDUP=1,1,"internet"' > /dev/cuaU0.1
of course I set +x on it and assigned ue0 as WAN interface.
In pfense i used shellcmd pkg as earlyshell.
In opnsense I made script in os level in /usr/local/etc/rc.syshook.d/early
When opnsense boots up I see that stick is connected (led is solid green) for about 5 seconds and goes to blink. After about 2 minutes everything is again connected and after that works ok. I tried another priority (file name starting with 01,20,50 and 99), also I moved script to "start" folder. Nothing changed except it blinks all the time for almost 2 minutes and after that works ok.
Also my test pc don't get dhcp address until lte stick is full connected.
So, in pfsense my firewall boots up in 10-15 seconds. In opnsense almost 3 minutes :/
Maybe I did something wrong? But it is very simple config. Should I place my script somewhere else?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
best directory to lte ndis startup script?