summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-misc/minissdpd/ChangeLog4
-rw-r--r--net-misc/minissdpd/files/minissdpd.initd-r18
2 files changed, 8 insertions, 4 deletions
diff --git a/net-misc/minissdpd/ChangeLog b/net-misc/minissdpd/ChangeLog
index 902e20a37edb..a334c0dc2091 100644
--- a/net-misc/minissdpd/ChangeLog
+++ b/net-misc/minissdpd/ChangeLog
@@ -1,5 +1,9 @@
+ 08 Nov 2011; Anthony G. Basile <blueness@gentoo.org>
+ files/minissdpd.initd-r1:
+ Fixed confusion between two variable names
+
*minissdpd-1.1.20111007-r1 (08 Nov 2011)
08 Nov 2011; Anthony G. Basile <blueness@gentoo.org>
diff --git a/net-misc/minissdpd/files/minissdpd.initd-r1 b/net-misc/minissdpd/files/minissdpd.initd-r1
index e29d21ef4357..a807a6de63c3 100644
--- a/net-misc/minissdpd/files/minissdpd.initd-r1
+++ b/net-misc/minissdpd/files/minissdpd.initd-r1
@@ -12,9 +12,9 @@ depend() {
}
checkconfig() {
- if [ "x$MINISSDPD" != "x" ]; then
+ if [ "x$MINISSDPD_IFACE" != "x" ]; then
interfaces=$($IFCONFIG | grep "Link encap" | awk '{ print $1 }')
- for interface in $MINISSDPD; do
+ for interface in $MINISSDPD_IFACE; do
hit=0
for available in $interfaces; do
if [ "$interface" = "$available" ]; then
@@ -34,14 +34,14 @@ start() {
ebegin "Starting minissdpd"
checkconfig || return 1
- if [ "x$MINISSDPD" = "x" ]; then
+ if [ "x$MINISSDPD_IFACE" = "x" ]; then
# We assume that the default interface has an IP address
interface=$($ROUTE | grep default | awk -- '{ print $8 }')
IP="$($IFCONFIG $interface | grep 'inet addr' | sed 's/.\+inet addr:\([0-9.]\+\).\+/\1/')"
ARGS="-i $IP "
else
ARGS=""
- for interface in $MINISSDPD; do
+ for interface in $MINISSDPD_IFACE; do
# An interface may not have an IP address, so don't listen if it doesn't
IP="$($IFCONFIG $interface | grep 'inet addr' | sed 's/.\+inet addr:\([0-9.]\+\).\+/\1/')"
if [ "x$IP" != "x" ]; then