On Sun, Feb 28, 2010 at 02:35:47PM +0100, Joachim Ott wrote: > (cc'ed to list because of attached script) > > On 28 February 2010 10:29, Michael Moroni <[email protected]> wrote: > > 2010/2/27 Joachim Ott <[email protected]> > >> > >> After a reboot, it kept saying > >> > >> can't open /dev/S > >> can't open dev/z6 > > > > I had the same problem so I chose to reflash. > > Sorry for being slow, I finished my script just today. It's a bash > script, if you don't have bash or you don't want to install it, you > have to redo name=${1%.*} and ${link##*/} with expr (man expr). > > If you call the script without params, it just shows what it would do: > e.g. in /bin for chmod.coreutils, if chmod is a link to busybox, it > changes it to chmod.coreutils. It does not link across directories, so > some files will remain and you have to do it by hand (like /bin/df to > /usr/bin/df.coreutils). > > You can also run it on a mounted fs with > > ROOT=/media/mtdblock6 opkg-rework > > And still others are not covered by the script like /bin/bash -> > /bin/sh or /usr/bin/vim -> /bin/vi. > > This is too late for you now, but maybe next week busybox strikes back > and you don't want another reflash.
I've checked where is problem and right solution is like this: if [ -h /usr/lib/ipkg ] ; then # We had link /usr/lib/ipkg -> /usr/lib/opkg, when opkg u-a merger # was running :/ # Especially last line in merger is bad in this case # Merge finished, old directory '/usr/lib/ipkg/alternatives' is removed # Restore old alternatives rm -rf /usr/lib/opkg/alternatives cp -ra /usr/lib/opkg/alternatives.backup /usr/lib/opkg/alternatives # Regenerate links with right alternatives available opkg install -force-reinstall busybox fi And then don't reinstall opkg until there is newer revision with this fix (shr buildhost is down, so I don't know when I'll be able to build it). Regards, -- uin:136542059 jid:[email protected] Jansa Martin sip:[email protected] JaMa _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
