#!/bin/sh
grep -r -l ngx_http_ubus_module.so /etc/nginx/module.d | grep -v ngx_http_ubus.module | while read file; do
  echo "Removing old LuCI module load file for 'ngx_http_ubus.so' in $file."
  rm -f $file
done
exit 0
