clivesay
  
 
  
 
 
Group: Guests 
Posts: 935 
Joined: Dec. 2003 | 
  | 
Posted: Dec. 28 2004,16:02 | 
   | 
 
 
  
I need some script help if possible. For my NFP machines I am going to run frugal with a MyDocuments symlink to another partition for file storage. This will keep files from being loaded into RAM. 
  Currently I have a simple command in bootlocal.sh that mounts the partition and creates a symbolic link to to a MyDocuments folder on the hda5 partition. 
  Since I am doing many installs I want to automate as much as possible, what I really need are commands in bootlocal similar to the following...... 
  mount hda5 and check to see if there is a MyDocuments folder, if there is then just create the symlink to /home/dsl. If there is not a MyDocuments folder on hda5 then create one and then create the symlink.
  I have done some very simple bash scripting but I am clueless when it comes to if/then statements. Can someone help me with this one? Thanks
  Chris 
 |