diff options
| author | Jaromil <jaromil@dyne.org> | 2012-05-22 09:58:26 (GMT) |
|---|---|---|
| committer | Jaromil <jaromil@dyne.org> | 2012-05-22 09:59:17 (GMT) |
| commit | 0f526e22ed2704cea72900d777f6b6da43801cd0 (patch) | |
| tree | 7672576b51f27cb92fe7e0e92d1c893ea4589be5 | |
| parent | af3171e20718586952301b3908dacb1893cedac6 (diff) | |
| -rw-r--r-- | scripts/S88hdsync | 3 | ||||
| -rw-r--r-- | scripts/hdsync.conf | 8 | ||||
| -rw-r--r-- | scripts/networks | 3 | ||||
| -rw-r--r-- | scripts/utils-sync.sh | 15 |
4 files changed, 18 insertions, 11 deletions
diff --git a/scripts/S88hdsync b/scripts/S88hdsync index e8990fe..f6b1333 100644 --- a/scripts/S88hdsync +++ b/scripts/S88hdsync @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2010-2011 Denis Roio <jaromil@nimk.nl> +# Copyright (C) 2010-2012 Denis Roio <jaromil@dyne.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -115,6 +115,7 @@ EOF while true; do + # loop infinitely $APPROOT/bin/hdsync -p $UPNPPORT -s localhost \ $HDSYNC_CHANNEL $TOTAL_CHANNELS \ "$USBROOT/video/$file" >> /tmp/hdsync.log diff --git a/scripts/hdsync.conf b/scripts/hdsync.conf index abbf40f..16b9493 100644 --- a/scripts/hdsync.conf +++ b/scripts/hdsync.conf @@ -12,13 +12,5 @@ HDSYNC_CHANNEL=1 # be careful this number is unique across your players # channel 1 is always the server, others are clients -HDSYNC_SLEEP=0 - # total video channels expected TOTAL_CHANNELS=2 - -# watchdog activation -# if you like to run an additional watchdog process to look over -# the playback and avoid long-term freezes, fill in here the duration -# of the video in seconds, approximated to the minimum (experimental feature) -# WATCHDOGTIMER=360 diff --git a/scripts/networks b/scripts/networks index edb78bf..26f0ed1 100644 --- a/scripts/networks +++ b/scripts/networks @@ -1,3 +1,4 @@ default 0.0.0.0 loopback 127.0.0.0 -link-local 169.254.0.0 +link-local 162.168.0.0 +multicast 224.0.0.0
\ No newline at end of file diff --git a/scripts/utils-sync.sh b/scripts/utils-sync.sh index d2068cd..d6b9ca0 100644 --- a/scripts/utils-sync.sh +++ b/scripts/utils-sync.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2010-2011 Denis Roio <jaromil@nimk.nl> +# Copyright (C) 2010-2012 Denis Roio <jaromil@dyne.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -32,7 +32,20 @@ get_ip() { config_tool -c LAN_TYPE='s' config_tool -c IP2=$IP config_tool -c NETMASK2=255.255.255.0 + # loopback route + route add -net 127.0.0.0 netmask 255.0.0.0 dev lo + # local network address ifconfig eth0 $IP netmask 255.255.255.0 + # from the route(8) manual page: "This is an obscure one + # documented so people know how to do it. This sets all of the + # class D (multicast) IP routes to go via "eth0". This is the + # correct normal configuration line with a multicasting + # kernel." + route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 + # and this is also necessary, default gateway is own interface + # (usage is compatible with some oldish BSD notation) + route add default gw $IP + echo "`date +%T` network interface configured with address $IP ..." else IP=`get_conf IP2` |

