iopsys-feed/netmode/files/lib/netmode/post/datamodel_init.sh

15 lines
230 B
Bash

#!/bin/sh
# This script is to restart related datamodel microservices
# when wan mode changes
if [ ! -f /var/run/boot_complete ]; then
return 0
fi
if [ -f /etc/bbfdm/dmmap/PPP ]; then
rm -f /etc/bbfdm/dmmap/PPP
fi
reboot &