hijack feature

Posted by: Boelle

hijack feature - 29/01/2009 22:10

is it possible that a future version of hijack could update itself?
Posted by: tman

Re: hijack feature - 29/01/2009 22:26

You can write a script that FTPs the newer kernel and then writes it and call it from the menu.
Posted by: Boelle

Re: hijack feature - 29/01/2009 22:30

i was thinking of a more simple "Update Hijack" thing that by it self downloads the kernel and flash it...one could think of this a a for dummies feature... push and forget..

hope i dont sound like a drunk laugh

would require internet access of course...
Posted by: tman

Re: hijack feature - 29/01/2009 22:36

Once you've written the script it would be push and forget...
Posted by: Boelle

Re: hijack feature - 29/01/2009 22:41

but still how do i add it to the hijack menu? remember im stupid when it comes to writeing scripts and that stuff...

Posted by: benjammin

Re: hijack feature - 29/01/2009 22:48

I would argue against auto-updates as if Windows hasn't already taught us that lesson.

laugh Not to be disagreeable, but so many times I see "auto updates" breaking things that would otherwise have been better left alone.

laugh

-Ben
Posted by: tman

Re: hijack feature - 29/01/2009 22:55

You'll need an internet connection and doing it on DC power wouldn't be a great idea. If you're already taking the empeg into your house and plugging it in then just updating it the regular way isn't much more work.
Posted by: Boelle

Re: hijack feature - 29/01/2009 22:58

depends on how big a slacker you are... but well ben is right... just a single glitch and you can use the empeg as brick
Posted by: tman

Re: hijack feature - 29/01/2009 23:00

Originally Posted By: Boelle
depends on how big a slacker you are... but well ben is right... just a single glitch and you can use the empeg as brick

It is a brick until you can get near a PC with a serial port. It isn't permanent.

Besides, Mark doesn't release that many new versions.
Posted by: Boelle

Re: hijack feature - 29/01/2009 23:06

nah... but i only have one pc with a serial port... and i only keep the pc to upgrade empeg.. along with some harddrive testing once in a while... would be faster with just a menu option to do the upgrade... instead of locateing the old laptop and setting it up and takeing it down afterwards...

but i guess i'm just a very big slacker... like to take all kinds of shortcuts if i can
Posted by: tman

Re: hijack feature - 29/01/2009 23:07

You can upgrade via ethernet if you have telnet or SSH running.
Posted by: Boelle

Re: hijack feature - 29/01/2009 23:09

how...? i might make a small doc on it so i can cut and paste next time he releases
Posted by: Boelle

Re: hijack feature - 29/01/2009 23:10

can i do it via the normal ethernet plug?
Posted by: mlord

Re: hijack feature - 29/01/2009 23:13

Originally Posted By: Boelle
can i do it via the normal ethernet plug?

Yes. I wrote / posted an upgrader.c program to do just that. It compiles and runs on Linux, and probably nearly every other modern OS.

Cheers
Posted by: Boelle

Re: hijack feature - 29/01/2009 23:16

hmm... ok... but would a option in hijack be to dangerous?
Posted by: mlord

Re: hijack feature - 29/01/2009 23:27

Originally Posted By: Boelle
hmm... ok... but would a option in hijack be to dangerous?

It's just not practical. The empeg lacks full networking setup, so it doesn't necessarily know how to resolve hostnames, or how to route to the outside world, etc..

-ml
Posted by: mlord

Re: hijack feature - 29/01/2009 23:29

And, again, it also lacks kernel code to read a file from another machine: no FTP or HTTP client or server code inside. Those things take up precious RAM, and they're not generally useful to many people. They're also rather easy to add in userspace, outside of the (Hijack) Linux kernel.

Write a little shell script do what you want it to do (configure networking, check versions, download the file, write it to /proc/empeg_kernel, reboot). Add that to the Hijack menu with a single line in config.ini.

Cheers
Posted by: Boelle

Re: hijack feature - 29/01/2009 23:35

how is the upgrader.c used.. i tried this:
[root@server upgrader]# ./upgrader.c
-bash: ./upgrader.c: access denied
[root@server upgrader]#
Posted by: mlord

Re: hijack feature - 29/01/2009 23:38

Somebody else can help you with that.

Cheers
Posted by: sein

Re: hijack feature - 30/01/2009 07:19

Just use Jemplode Boelle. With the Empeg plugged into the network, load up Jemplode and use Tools -> Update Hijack + Jemplode. Its literally about 3 clicks of your mouse!