hi,
i have a d-link dwr-921 lte router running openwrt 18.06.4
the router frequently loses its internet connection, then i mostly have to reboot, connect the router to a computer via network cable and run the commands
# ssh root@192.168.1.1 and
# ifup wwan
manually to bring the router back online.
i am wondering if its possible to automate this, so the router automatically issues the "ifup wwan" command while booting or after booting (so i only have to reboot the router when it loses its internet connection, with no need to go to the command line in addition).
my knowledge about linux is limited, but i suppose this should be done by a boot script, right? unfortunately, i have no experience with writing scripts :-/
what do you think? what would be the best way to set up openwrt to run the "ifup wwan" command automatically at boot?
your help would be much appreciated.
thank you