netmode: reboot to apply mode change

This commit is contained in:
Vivek Dutta 2025-11-20 21:38:54 +05:30 committed by Sukru Senli
parent 36928bdcb9
commit b3cfbc8536

View file

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
# This script is to cleanup dmmap and restart datamodel related services # This script is to restart related datamodel microservices
# when wan mode changes # when wan mode changes
if [ -d "/etc/bbfdm/dmmap/" ]; then
rm -rf /etc/bbfdm/dmmap/* if [ ! -f /var/run/boot_complete ]; then
return 0
fi fi
ubus -t 10 call bbfdm get '{"path":"Device."}' >/dev/null reboot &