Ticket #13619: patch-mediaserv.diff
File patch-mediaserv.diff, 596 bytes (added by ecronin (Eric Cronin), 17 years ago) |
---|
-
mediaserv
old new 82 82 # 83 83 unless ($ip) { 84 84 local $ENV{PATH} = '/usr/local/sbin:/usr/sbin:/sbin:'.$ENV{PATH}; 85 $ip = `ifconfig \$(netstat -arn | awk '\$1 ~ / 0\.0\.0\.0/ {print \$8; exit}')`;86 $ip =~ s/^.* ?:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) .*$/$1/s if $ip;85 $ip = `ifconfig \$(netstat -arn | awk '\$1 ~ /default/ {print \$6; exit}')`; 86 $ip =~ s/^.*inet (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) .*$/$1/s if $ip; 87 87 } 88 88 89 89 # -- See if we can use Gnome to get thumbnails for videos...