Kevin Stallard(deleted)
|
Problems with a shell script
|
Kevin Stallard(deleted)
05/26/2009 7:55 AM
post30001
|
Problems with a shell script
I have a very simply shell script (ksh) that I am trying to run on a powerPC target.
The scripts is included with the build.
Below is the script:
/proc/boot/slay -f ftpd
/proc/boot/slay -f io-net
/proc/boot/io-net -dmpc85xxSwitch_g mac=020000C80002,phy_addr=0x14,verbose -p /proc/boot/npm-tcpip.so
To run the scriptt the command line I type:
sh /proc/boot/setPrimaryIP
The output follows:
# sh /proc/boot/setPrimaryIP
: not foundsetPrimaryIP[3]:
: not foundsetPrimaryIP[8]:
Entered mpc_init.
************** Marvell 6185 Switch Global Status Register = 0xf820.
+++ Marvell 6185 Switch Port 9 PCS Control Register = 0x20fe.
+++ Marvell 6185 Switch Port 9 Port Status Register = 0x6e88.
************** Marvell 6185 Switch Global Status Register = 0xf820.
+++ Marvell 6185 Switch Port 9 PCS Control Register = 0x20fe.
+++ Marvell 6185 Switch Port 9 Port Status Register = 0x6e88.
: Library cannot be foundboot/npm-tcpip.so
#
The slay's are not found and npm-tcpip.so is not used by io-net.
All the commands in the script run fine if I type them directly via the command line. What am I doing wrong?
Thanks
Kevin
|
|
|