ATV2 and iOS nightly build semi automatic update scripts

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Giraff Offline
Junior Member
Posts: 34
Joined: Jul 2004
Reputation: 0
Post: #21
This script is awesome, works great. I included a line to copy over the updated the updated appleremote xml file too.

I'm wondering it it is possible to add the running of this script to the menu in nito tv for added convenience? I don't want it to be totally automated, but being able to do it from a couch would be nice. It would also make it a lot easier to keep my friends atv2 updated too.

Anyone else been thinking along these lines?
find quote
NEI Offline
Donor
Posts: 113
Joined: Nov 2003
Reputation: 0
Post: #22
Giraff Wrote:This script is awesome, works great. I included a line to copy over the updated the updated appleremote xml file

What does this update do to the remote? Where do you get it from? Thanks.
find quote
dssnobie Offline
Junior Member
Posts: 3
Joined: Jan 2010
Reputation: 0
Post: #23
Giraff Wrote:This script is awesome, works great. I included a line to copy over the updated the updated appleremote xml file too.

I'm wondering it it is possible to add the running of this script to the menu in nito tv for added convenience? I don't want it to be totally automated, but being able to do it from a couch would be nice. It would also make it a lot easier to keep my friends atv2 updated too.

Anyone else been thinking along these lines?

I think the ultimate solution would be an Add-on which will run the script. Just my 2c.
find quote
Giraff Offline
Junior Member
Posts: 34
Joined: Jul 2004
Reputation: 0
Post: #24
NEI Wrote:What does this update do to the remote? Where do you get it from? Thanks.

I just used this to make the up and down buttons skip ten minutes. By default these are unused and the sideways buttons will only skip a little bit.

There is a discussion on this topic in this thread too.

I just added a line to copy the remote file to the relevant folder.

Code:
cp joystick.AppleRemote.xml /private/var/mobile/Library/Preferences/XBMC/userdata/keymaps

I originally copied it to the xbmc program folder. That gets deleted on reinstall of a nightly update. This made me need to copy it on every xbmc update.

I have since modified it to copy it to the userdata folder. That folder does not get deleted. This way you only need to copy it once, and adding it to the script is rather redundant.
find quote
nick0742 Offline
Junior Member
Posts: 3
Joined: Sep 2011
Reputation: 0
Post: #25
hangs at: (Reading database ... 3643 files and directories currently installed.)
Preparing to replace org.xbmc.xbmc-atv2 10.0-9 (using xbmc-20111010-34f799e-master-atv2.deb) ...
for me. Sad

edit: Nvrmd, I was just a tad impatient. It worked well
find quote
RodmanSan Offline
Junior Member
Posts: 5
Joined: Oct 2011
Reputation: 0
Location: E-Troid
Post: #26
Just wanted to thank you for this script....!

Works great...and i don't need to bend my mind what the next step should be... Wink
find quote
Giraff Offline
Junior Member
Posts: 34
Joined: Jul 2004
Reputation: 0
Post: #27
dssnobie Wrote:I think the ultimate solution would be an Add-on which will run the script. Just my 2c.

I've been pootin' around with this problem. Teaching myself some scripting. I've managed to run the script from within a xbmc addon. I get it to download the update but it doesn't do the actual updating. The dpkg will not run. I'm guessing this is because it's running within the program it is trying to update. Anyone have any ideas on how to do this? Is there a way to kill xbmc, and still make the script run?

I made it write the output to a file since it will not show the terminal output in the addon.
Code:
dpkg -i $xbmcdeb > installoutput.txt

The output from that was a zero sized file.

Repo - A few simple script to do library update.
find quote
g-off Offline
Fan
Posts: 635
Joined: Aug 2011
Reputation: 3
Post: #28
Giraff Wrote:I've been pootin' around with this problem. Teaching myself some scripting. I've managed to run the script from within a xbmc addon. I get it to download the update but it doesn't do the actual updating. The dpkg will not run. I'm guessing this is because it's running within the program it is trying to update. Anyone have any ideas on how to do this? Is there a way to kill xbmc, and still make the script run?

I made it write the output to a file since it will not show the terminal output in the addon.
Code:
dpkg -i $xbmcdeb > installoutput.txt

The output from that was a zero sized file.

The script is a child process of xbmc so it hangs up too.
You might be able to launch a background process script that can survive the death of its parent using
Code:
scriptname&

You need to capture stderr (error stream) too
Code:
dpkg -i $xbmcdeb 2>&1 installoutput.txt

Another option is to have a script running outside of xbmc looking for a trigger, like a file appearing, that runs the update process.
(This post was last modified: 2011-10-19 01:11 by g-off.)
find quote
davilla Offline
Team-XBMC Developer
Posts: 10,399
Joined: Feb 2008
Reputation: 58
Post: #29
dpkg -i will not run, need user root and you are user mobile for xbmc. Also, remember that iOS restrictions still apply and there are some locations that you do not have full read/write permission.

Also, under iOS, you are not permitted to fork.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
g-off Offline
Fan
Posts: 635
Joined: Aug 2011
Reputation: 3
Post: #30
davilla Wrote:Also, under iOS, you are not permitted to fork.

I guess I won't be writing that forking server after all Laugh. Probably a good precaution from Apple - I seem to remember uni student unix servers with literally thousands of zombie processes on them.
find quote