I know you aren't doing this but just in case someone stumbles into this thread some day, if your .sh file is on a EXT2/3 storage card you must have execute permission set on the .sh file (and any executables inside the .sh folder...) chmod +x <your>.sh
Here is my ifconfig.sh script that I have on my internal memory:
ifconfig -a >/mnt/free/if.txt
One line, works great.
I also keep a pair of these scripts on internal memory to deal with the !@#$ can't mount storage card timing issue:
mount /dev/hda1 /mnt/cf
If the card is already mounted you won't hurt anything. Running the script has always gotten my CF or MMC card mounted, where un-plugging/re-plugging might or might not.
|