summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-11-08 14:18:34 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-11-08 14:18:34 +0000
commit70dc630a9fd2b3aa3379806c97b0d705f19605ca (patch)
tree8375e41fbc298ca79df22e259925a546c3e70789 /net-misc/minissdpd/files
parentFix Darwin8 patch version in name (diff)
downloadgentoo-2-70dc630a9fd2b3aa3379806c97b0d705f19605ca.tar.gz
gentoo-2-70dc630a9fd2b3aa3379806c97b0d705f19605ca.tar.bz2
gentoo-2-70dc630a9fd2b3aa3379806c97b0d705f19605ca.zip
Fixed confusion between two variable names
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/minissdpd/files')
-rw-r--r--net-misc/minissdpd/files/minissdpd.initd-r18
1 files changed, 4 insertions, 4 deletions
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