X-Wrt
July 29, 2010, 07:27:54 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome to the X-Wrt Forums
Home
Help
Search
Login
Register
X-Wrt
>
General Category
>
General Discussion
>
system-upgrade.sh
Pages: [
1
]
« previous
next »
Print
Author
Topic: system-upgrade.sh (Read 374 times)
MarcelJ
Newbie
Offline
Posts: 3
system-upgrade.sh
«
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
Posts: 3
Re: system-upgrade.sh
«
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
Posts: 1138
Re: system-upgrade.sh
«
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
Posts: 3
Re: system-upgrade.sh
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
News
-----------------------------
=> News
-----------------------------
General Category
-----------------------------
=> General Discussion
=> White Russian Discussion
=> Kamikaze Discussion
=> Development
Loading...