peterworks
Ye Olde Bowler
Please excuse my almost total lack of knowledge of Linux. I am now a bit long in the tooth to learn it although I do dabble.I can post a combined patch of the one above and moving pointer patch both by @Matthew if anyone's interested. The patch above has lost some initial spaces which will cause it to fail.
I have added some extra genre colours and moved the pointer vertically because it was overlapping the days at the top and ending before the last channel entry at the bottom (this might be browser dependent).
@xyz321 kindly made a patch to incorporate changes to the epg originating from @Matthew (as quoted above).
It works fine but whenever WebIf is updated it is 'lost' and I have to run the following:
cd /mod/webif
patch -p1 < /mod/tmp/webif-matthew-combined.patch
I am not at all familiar with Linux but wondered if I could create a bash(?) file that will run at each startup of the box.
I have looked at all sorts of examples and have come up with the following:
#!/bin/sh
$ chmod a+x DoEPG.sh
./DoEPG.sh
cd /mod/webif
patch -p1 < /mod/tmp/webif-matthew-combined.patch
Would this work ?
I do not know where to go from here. From my understanding I name the file DoEPG.sh and put it into the /bin/sh folder. I appreciate that I may not need the .sh extension but I would like to keep it to differentiate the file from those that are part of WebIf.
I would cause it to run by putting this:
* * * * * /mod/sbin/DoEPG.sh
in either /mod/etc/anacrontab or /mod/var/spool/cron/crontabs/root
Any advice very welcome.