Black Hole
May contain traces of nut
I'll bypass the homeplugs (temporarily) and see if that helps.
If anyone sees an iPlayer message like this, it may be useful to record the number that's also shown (say 20001) in a tiny font, as someone with too much free time may be able to find this code in the iPlayer JS and hence determine what was failing. Certainly use the number in a complaint about vanilla iPlayer to the BBC....* By "works", I mean TV Portal >> iPlayer can browse for BBC catch-up content and play the content, whereas without iplhack (or without DHCP) the content can be browsed but will not play (iPlayer responds with a "Something has gone wrong" message).
So, dnsmasq not get used at all when the IP is statically configured, which means iplhack will never work. This is a bit crap, is it not? But oh so Humax.The key thing is that it's using dnsmasq in the second and third cases as shown by "Server: 127.0.0.1".
With my wifi startup script, 127.0.0.1 and the other servers added by the DHCP script are present even though the on-screen LAN info says "Manual". I thought, wrongly (see below), that in BH's exampleSo, dnsmasq not get used at all when the IP is statically configured, which means iplhack will never work. ...
See below and update here.It looks like /etc/resolv.conf can be edited after it's been blitzed at startup by humaxtv, but will it then use it? It does using nslookup anyway.
What's needed for iplhack is to change configuration that's inIf resolv.conf can be written to post-boot, isn't that easier than invoking another instance of dnsmasq?
/etc/dnsmasq.conf
, which is a read-only file, whereas /etc/resolv.conf
is a symlink to a /var/lib/humaxtv/resolv.conf
file in RW flash. Stopping the default instance of dnsmasq and replacing it with custom instance seems like the easiest solution, especially as it appeared necessary to restart the reconfigured dnsmasq regularly in case the IP address resolved for open.live.bbc.co.uk should be rotated out of service.Whereas the Humax setup fails to do the first part (sentence 2) of para #2 if DHCP is not used and always fails to do the second part (sentence 3).setup.html said:...A machine which already has a DNS configuration (ie one or more external nameservers in /etc/resolv.conf and any local hosts in /etc/hosts) can be turned into a nameserver simply by running dnsmasq, with no options or configuration at all. ...
In the simple configuration described above, processes local to the machine will not use dnsmasq, since they get their information about which nameservers to use from /etc/resolv.conf, which is set to the upstream nameservers. To fix this, simply replace the nameserver in /etc/resolv.conf with the local address 127.0.0.1 and give the address(es) of the upstream nameserver(s) to dnsmasq directly. You can do this using either the server option, or by putting them into another file, and telling dnsmasq about its location with the resolv-file option.
That's not the case - I populate using DHCP, then switch to manual and configure just the IP address. Each time a manual configuration is applied, 127.0.0.1 disappears.BH's example is the first I saw where DHCP had never been used
So scratch that hypothesis! There must be some other difference that's causing Manual to appear in my LAN info displays even though the setup data seems to say DHCP and the behaviour otherwise indicates DHCP (eg, there is a udhcpc process for wlan0).That's not the case - I populate using DHCP, then switch to manual and configure just the IP address. Each time a manual configuration is applied, 127.0.0.1 disappears.
Although this development version would obviously work better than one with no 127.0.0.1 DNS address, it doesn't otherwise seem to be any more reliable than the released version. I'm wondering if the apparently random iPlayer app behaviour depends on which CDN is selected to deliver the content (Akamai vs AWS IIRC)....
The DNS Address value shown on the "Configure LAN" page is (apparently) the address from the first nameserver entry in/etc/resolv.conf
that is not 127.0.0.1.
...
/mod/var/opkg/info/iplhack.prerm
and remove the errant i
in the one significant command, which should now read:/mod/etc/init.d/[SZ]99iplhack stop 2>&1 >/dev/null
#instead of
#/mod/etc/init.d/i[SZ]99iplhack stop 2>&1 >/dev/null
if crontab -l | grep -q /iplhack; then crontab -l | grep -v /iplhack | crontab -; fi
You probably ought to push out an update to fix this. Then anyone who has auto-update installed will be able to uninstall it cleanly subsequently without any bother.With apologies to testers who may wish to uninstall this package in favour of the one true fix, there is a typo in the script that runs before removing the package.
See updates above, if any Beta users have auto-update as well (?).You probably ought to push out an update to fix this. Then anyone who has auto-update installed will be able to uninstall it cleanly subsequently without any bother.
Cool. A loo with entertainment!TBH I've only used it on HDs because the room with the HDR is otherwise engaged.
What are the consequences if a user doesn't do this? What are the consequences if a user does this without needing to? Is there an easy test to tell if it needs doing? Would installing and then uninstalling the updated version of iplhack have the desired effect?Code:if crontab -l | grep -q /iplhack; then crontab -l | grep -v /iplhack | crontab -; fi
Cron tries to run something that doesn't exist every 10 minutes.What are the consequences if a user doesn't do this?
None.What are the consequences if a user does this without needing to?
You could look at the /mod/var/spool/cron/crontabs/root file, to see if there is a line containing "iplhack", but it's easier just to run the command.Is there an easy test to tell if it needs doing?
Yes.Would installing and then uninstalling the updated version of iplhack have the desired effect?
>>> opkg remove iplhack
/mod/var/opkg/info/iplhack.prerm: line 3: /mod/etc/init.d/i[SZ]99iplhack: not found
Removing package iplhack from root...
Done.
You could look at the /mod/var/spool/cron/crontabs/root file, to see if there is a line containing "iplhack", but it's easier just to run the command.
grep iplhack /mod/var/spool/cron/crontabs/root
and thenCode:if crontab -l | grep -q /iplhack; then crontab -l | grep -v /iplhack | crontab -; fi
confirmed it gone.Code:grep iplhack /mod/var/spool/cron/crontabs/root
Thus confirming the previous suggestion that it would have been easier to run the command that I posted...Using that, I was quickly able to confirm I only ever had iplhack installed on one machine.Code:grep iplhack /mod/var/spool/cron/crontabs/root
...
He had no idea that he might be able to. Like the manager's Hello World programYou need 0.9.2 attached to post 1. I guess there's some reason /df can't upload it to the repository.
From: A Manager
To: A Programmer
Subject: Hello World program
Hi Al
Would you be able to write me a Hello World program?
I need it by COB tomorrow.
Thanks
Art
--
Arthur Manager
Program Manager
Cyber Corp