You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
387 B
26 lines
387 B
#!/bin/sh
|
|
|
|
. /etc/init.d/globals
|
|
|
|
case $1 in
|
|
start)
|
|
if [ -e /var/etc/.xupnpd ]; then
|
|
rm -rf /tmp/xupnpd-*
|
|
rm -f /tmp/xupnpd.pid
|
|
sleep 10 # FIXME; This is to workaround slow DHCP
|
|
/bin/xupnpd &
|
|
fi
|
|
;;
|
|
stop)
|
|
killall xupnpd
|
|
;;
|
|
restart)
|
|
if [ -e /var/etc/.xupnpd ]; then
|
|
$0 stop
|
|
$0 start
|
|
fi
|
|
;;
|
|
*)
|
|
echo "[$BASENAME] Usage: $0 {start|restart|stop}"
|
|
;;
|
|
esac
|
|
|