#!/bin/sh
set -e
if [ -f /etc/uci-defaults/99-luci-app-speedify-no-uhttpd ]
then
  # If we get here, we are installing on a live router.
  sh /etc/uci-defaults/99-luci-app-speedify-no-uhttpd
  rm /etc/uci-defaults/99-luci-app-speedify-no-uhttpd
fi
if [ "$(/etc/init.d/nginx status 2>/dev/null || true)" = "running" ]
then /etc/init.d/nginx restart || true
fi
if [ "$(/etc/init.d/uhttpd status 2>/dev/null || true)" = "running" ]
then /etc/init.d/uhttpd restart || true
fi
