diff --git a/netmode/files/lib/netmode/post/datamodel_init.sh b/netmode/files/lib/netmode/post/datamodel_init.sh index da7f91df5..07541e569 100644 --- a/netmode/files/lib/netmode/post/datamodel_init.sh +++ b/netmode/files/lib/netmode/post/datamodel_init.sh @@ -1,10 +1,11 @@ #!/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 -if [ -d "/etc/bbfdm/dmmap/" ]; then - rm -rf /etc/bbfdm/dmmap/* + +if [ ! -f /var/run/boot_complete ]; then + return 0 fi -ubus -t 10 call bbfdm get '{"path":"Device."}' >/dev/null +reboot &