#!/bin/sh [ "$ACTION" = "ifup" ] && [ -n "$(ifconfig br-lan | grep UP)" ] && /etc/init.d/miniupnpd enabled && /etc/init.d/miniupnpd restart