mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
25 lines
508 B
Bash
25 lines
508 B
Bash
#!/bin/sh
|
|
|
|
# This script is to cleanup dmmap and restart datamodel related services
|
|
# when wan mode changes
|
|
|
|
if [ -d "/etc/bbfdm/dmmap/" ]; then
|
|
rm -rf /etc/bbfdm/dmmap/*
|
|
fi
|
|
|
|
# If device is booting up, no need to restart services
|
|
if [ ! -f /var/run/boot_complete ]; then
|
|
return 0
|
|
fi
|
|
|
|
if [ -x "/etc/init.d/bbfdm.services" ]; then
|
|
/etc/init.d/bbfdm.services restart
|
|
fi
|
|
|
|
if [ -x "/etc/init.d/bbfdmd" ]; then
|
|
/etc/init.d/bbfdmd restart
|
|
fi
|
|
|
|
if [ -x "/etc/init.d/obuspa" ]; then
|
|
/etc/init.d/obuspa restart
|
|
fi
|