Tuesday, August 19, 2008

OpenWRT Upgrade Failure with IPKG

Yesterday, I tried to upgrade one of by OpenWRT box with /ipkg upgrade/.
I canceled the upgrade process when I saw the first package, base-files,
was upgraded. But it's too late, /etc/passwd was overwritten. Since I
was executing /ipkg/ with /sudo/, current user was missed in
//etc/passwd/. I used to think that I have to rescue the USB fs with an
original backup. Fortunately, I found the password of root was reseted
to blank and can be accessed with telnet. So, I logged in can copy some
files from another box. Now the box was back.

I'm not sure that whether any other customized files will be affected by
upgrading. But chances are that there's no protection for them during
upgrading. And unfortunately, there's no version check for package
dependency. So, upgrading will be a complex manual task.

Labels:

Tuesday, August 12, 2008

Whisht Wind : Weblog

Whisht Wind : Weblog

This bug was found with a TP-Link TL-R410+ router. Unfortunately, Debian enables the request of MTU by default, but Ubuntu doesn't.

Sunday, August 3, 2008

HTML Parser

It sounds like a topic out of date. But, the fact I found during the last few days is that there are very few HTML parser lib with good fault tollerence. For open source ones, the engine of Mozilla is one of them, and html5parser is another candidate. I wanted to conver some web site (Wikipedia, etc.) into RDF, but found most of existing pages are not 100% compatible with XML. Whatever, they can still be displayed with browsers. After studying 4suite and html5parser, I think it's possible to integrate html5paser as a preprocessor of 4suite, and it can be used to convert existing web contents into RDFs.

Labels: ,