]> git.plutz.net Git - serve0/commitdiff
perform lookup for raspberry
authorpaul <paul@plutz.net>
Fri, 24 Apr 2015 13:55:51 +0000 (13:55 +0000)
committerpaul <paul@plutz.net>
Fri, 24 Apr 2015 13:55:51 +0000 (13:55 +0000)
svn path=/trunk/; revision=40

pages/videoview.sh

index 962cd52c7e02dec831aa8873ed444ff758c7acee..92459982c93b106d008154f469dc2b5a5e3a9c45 100755 (executable)
@@ -95,7 +95,8 @@ _printVideo(){
 
     linkinfo="$(urlsave "$info")"
 
-    rpibase="http://pfostenpanne/?path=http://jupiter:8000/"
+    rpiaddr="$(host pfostenpanne |sed -r 's;^.* ([0-9\.]+)$;\1;')"
+    rpibase="http://${rpiaddr}/?path=http://jupiter:8000/"
 
     [ $height -gt 480 ] && \
        raspi="<a class=\"videolink alt raspi\" href=\"${rpibase}?action=transcode&i=${linkinfo}&t=480\">RasPi</a>" \