X-Wrt
July 29, 2010, 07:27:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the X-Wrt Forums
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: system-upgrade.sh  (Read 373 times)
MarcelJ
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: February 19, 2010, 12:47:05 PM »

Hi,

I'm not using OpenWRT but something very similar based on buildroot. I included webif in my configuration and what I want to do is get the firmware upgrade to work using system-upgrade.sh.

Unfortunately my scripting isn't all that well and I have a tough time getting it to work properly, so I hope someone can explain so things to me and perhaps give some hints to get me going.

The system-upgrade.sh script seems to run fine. I can select my firmware and it uploads to my board and is placed in /tmp with some random name assigned.
Than, I notice that the read_var() is called and I can tell that the whole thing hangs at 'read LINE' in this function.

I suppose read LINE is either not functioning well or perhaps the input to it doesn't work properly. I just have no idea how to find the root cause.

Anyone have an idea how to make this work or what I could be missing ?

thanks,
Marcel

Logged
MarcelJ
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #1 on: February 20, 2010, 08:31:29 AM »

I ended up by skipping the read_var part and jump to do_upgrade immediately. It works fine for me but I still don't understand the problem of "real LINE".

At least I can upgrade now, so I'm happy with that.
Logged
thepeople
X-Wrt Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 1138


View Profile
« Reply #2 on: February 20, 2010, 10:36:18 AM »

Are you using busybox httpd and haserl? While most of busybox is compatible with normal gnu utilities we have run into a few things that work differently than you would expect.
Logged
MarcelJ
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #3 on: February 23, 2010, 03:03:39 PM »

Yes I'm using busybox httpd and haserl. It's working fine except for the read LINE issue so far.
What I noticed is that read works in ash, but expect a return to be entered. Not sure if that's the real reason why it keeps hanging in my case. I haven't tried it further and just skipped it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.088 seconds with 15 queries.