--- In
nslu2-linux@..., "slackline" <nshephard@...> wrote:
>
> --- In
nslu2-linux@..., "slackline" <nshephard@> wrote:
> >
> > Went with
http://ipkg.nslu2-linux.org/feeds/optware/slugos5be/cross/unstable/ in the end.
> >
> > Instructions were fine, although I had to edit the /opt/etc/ipkg.conf file to reflect the above.
> >
> > Currently get an error after trying to install nfs-utils so I can get my drives back on-line
> >
> > Configuring nfs-utils
> > //usr/lib/opkg/info/nfs-utils.postinst: line 7: update-rc.d: not found
> > postinst script returned status 127
> > Configuring portmap
> > //usr/lib/opkg/info/portmap.postinst: line 7: update-rc.d: not found
> > postinst script returned status 127
> > Collected errors:
> > * ERROR: nfs-utils.postinst returned 127
> > * ERROR: portmap.postinst returned 127
> >
>
> Looks like I've managed to resolve this with a bit of tinkering.
>
> I initially tried forcing a reinstall of update-rc.d but got the same error message.
>
> Rooting around I found reference to /sbin/setup-optware.sh (see
http://www.nslu2-linux.org/wiki/SlugOS/SlugOS5 ).
>
> Having already installed the optware feed manually I went ahead and over-wrote it by using the script. As I wrote I had to modify the /opt/etc/ipkg.conf file, I was asked if I wanted to over-write this with the maintainers file which I did.
>
> All done I had another go at forcing reinstalling update-rc.d and to my delight that worked and finished off the post-install of nfs-utils and portmap...
>
> # opkg install update-rc.d --force-reinstall
> Reinstalling update-rc.d (0.7-r1) on root...
> Downloading
http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/update-rc.d_0.7-r1_all.ipk> Configuring nfs-utils
> Adding system startup for /etc/init.d/nfsserver.
> creating NFS state directory: done
> starting 8 nfsd kernel threads: done
> starting mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
> done
> starting statd: done
> exportfs: Warning: /media/sdb1 does not exist
> exportfs: Warning: /media/sdb2 does not exist
> exportfs: Warning: /media/sdb3 does not exist
> exportfs: Warning: /media/sdb5 does not exist
> exportfs: Warning: /media/sdb6 does not exist
> exportfs: Warning: /media/sdb7 does not exist
> exportfs: Warning: /media/sdb8 does not exist
> Configuring portmap
> Adding system startup for /etc/init.d/portmap.
> Configuring update-rc.d
>
Turns out the original errors were because /usr/sbin/ (and /sbin) were not in root's $PATH environment despite /etc/profile having them listed for root.
However, I now get an error message that portmap can't be started...
# opkg install nfs-utils portmap --force-reinstall
Reinstalling nfs-utils (1.1.2-3) on root...
Downloading
http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/nfs-utils_1.1.2-3_armv5teb.ipkReinstalling portmap (6.0-r3) on root...
Downloading
http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/portmap_6.0-r3_armv5teb.ipkConfiguring nfs-utils
System startup links for /etc/init.d/nfsserver already exist.
stopping mountd: done
stopping statd: done
starting mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
done
starting statd: done
Configuring portmap
System startup links for /etc/init.d/portmap already exist.
Will report back when I've solved this too.
>
> (The /media/sdb* errors are due to the HD being tempramental, plugging it into the desktop solved this in the past, something to do with the cable, or ultimately an excuse to get another HD).
Sorted this, power-cycling and plugging into the desktop then repeating and plugging back into slug sorted it.
Neil