I am running MicroCore on a USB key (booting from DOS Using Grub4DOS).
I want to run a BASH script which will search through all the disks connected to the system for a specific file, and then make that the active directory when the system is started up.
I have written a script which will get output from fdisk -l, parse it (in an array) and then scan each drive for the applicable file. I have some other stuff running in my /root/.profile, and was hoping to add this code.
The problem is, I cant run this script in .profile as the .profile doesnt seem to support BASH.
The way BASH is loaded is that the files are in the "optional" folder, and I have an onboot.lst file which says "bash.tcz" in it.
Any recommendations for how I can get .profile working with BASH, or a better way to accomplish this???
Thanks for the help!