Howto reinstall Bash

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Gargo
DD-WRT Novice


Joined: 18 Jan 2009
Posts: 14
Location: Belfast

PostPosted: Thu Jun 28, 2012 21:35    Post subject: Howto reinstall Bash Reply with quote
I think I need to reinstall Bash. I don't know how to only install Bash.

The power to my Asus WL-500GPV2 was cut and on reboot now the USB stick is not mounting.
Most of the Optware scripts in /opt/etc/init.d are returning 'Bus Error' (the USB mounting script is one) and if I try to run a Bash shell I also get 'Bus Error'. Since the failing scripts are run in BASH, I think Bash is corrupted.
Note: any other commands from the same folder as Bash (E.g. TAIL) run as normal.

So, how do I reinstall BASH?
I've tried using the line from the Optware installing script
ipkg install bash -f /tmp/ipkg.conf
This reminds me that I must have jffs enabled so I mounted a jffs on to the Opt folder and ipkg update but still get the message:
Quote:

Updated list of available packages in /jffs/usr/lib/ipkg/lists/backports
root@Slave1:~# ipkg install bash -f /tmp/ipkg.conf
ipkg_get_install: ERROR: Cannot find package bash in /jffs/usr/lib/ipkg/lists
ipkg_get_install: Check the spelling and maybe run `ipkg update'.
ipkg_get_install: ERROR: Cannot find package -f in /jffs/usr/lib/ipkg/lists
ipkg_get_install: Check the spelling and maybe run `ipkg update'.
ipkg_depends: ERROR: Package name /tmp/ipkg.conf contains illegal characters (should be [a-z0-9.+-])
/bin/ipkg: line 1189: can't create /tmp/ipkg/pkg_/tmp/ipkg_conf.installed: nonexistent directory
root@Slave1:~# bash
Bus error
root@Slave1:~#


Thanks,
Gavin.

_________________
Asus wl500gPv2 communicating with a PIC controlled water solar heater.
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum