mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
netmode: reboot to apply mode change
This commit is contained in:
parent
36928bdcb9
commit
b3cfbc8536
1 changed files with 5 additions and 4 deletions
|
|
@ -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 &
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue