Correction XDP file path, wwan_loop service and add hotplug iface wwan script
XDP file path was in the var folder which is a virtual link to tmp folder. add hotplug script to put the script xdp on the interface wwan when the command ifup -a wwan0 is called. wwan_loop service crash on the launch, because it launched before the interface wwan set up.
This commit is contained in:
parent
d897436ab4
commit
7ef652b184
3 changed files with 11 additions and 1 deletions
7
files/etc/hotplug.d/iface/99-ifup-wwan
Normal file
7
files/etc/hotplug.d/iface/99-ifup-wwan
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
[ "$ACTION" = "ifup" -a "$DEVICE" = "wwan0" ] && {
|
||||
logger "iface wwan0 up detected, loading XDP..."
|
||||
ip link set dev wwan0 xdp obj /usr/local/share/xdp/xdp_udp.o sec xdp_udp
|
||||
}
|
||||
exit 0
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
mmcli --modem 0 --monitor-state | while read r ; do /usr/sbin/wwan_reconnect ; done
|
||||
sleep 5
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue