#!/bin/sh # # Start the upnp daemon... # start() { echo "Starting the upnp daemon..." if [ -f /usr/local/bin/upnpd ] then echo "Configuring br0 with zcip..." zcip br0 /usr/local/etc/zcip.script fi } stop() { echo "Stopping the upnp daemon..." if [ -f /usr/local/bin/upnpd ] then killall upnpd fi } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit $?