Projects
Multimedia
mediatomb
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 21
View file
mediatomb.spec
Changed
@@ -71,7 +71,8 @@ Requires: logrotate Requires(pre): %insserv_prereq Requires(pre): coreutils -Requires(pre): grep +Requires(pre): sed +Requires(pre): iproute Requires(pre): pwdutils %description
View file
rcmediatomb
Changed
@@ -47,7 +47,7 @@ PATH="$PATH:/usr/bin:/usr/local/bin" -IFACE_IP=`ifconfig | grep -i "$MT_INTERFACE" -A 1|grep "inet addr"|cut -d " " -f 12|cut -d ":" -f 2` +IFACE_IP="`ip -oneline -family inet addr show dev $MT_INTERFACE | sed -n 's@\(^[0-9]\+:[[:blank:]]\+[^[:blank:]]\+[[:blank:]]\+inet[[:blank:]]\+\)\([^/]\+\)\(.*\)@\2@p'`" [ -d /var/lock/subsys/ ] || mkdir -p /var/lock/subsys/ # By default it's all good @@ -59,8 +59,8 @@ # Start daemon. echo -n "Applying multicast settings to $MT_INTERFACE... " # those settings are necessary for us to react to M-SEARCH requests - route add -net 239.0.0.0 netmask 255.0.0.0 $MT_INTERFACE >/dev/null 2>&1 - ifconfig $MT_INTERFACE allmulti + ip route add 239.0.0.0/8 dev $MT_INTERFACE + ip link set dev $MT_INTERFACE allmulti on touch $MT_PIDFILE chown $MT_USER $MT_PIDFILE
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.