Posted: Sun 28 Apr 2013, 09:47 Post subject:
Get Boot Directory 1.3-2 Subject description: A useful script to get the boot directory of a puppy (for the use in bash)
This script creates a text file which contains the boot directory of a puppy linux in several forms for the use in a bash script.
I do use this in LazY Puppy to be able to download the SFS files automatically into the LazY Puppy boot directory - no matter if it is /mnt/sda1 or /mnt/sdb2/LazY or /mnt/home or whatever directory and/or partition is used.
After including the file LP2_BootDir this way into a bash script the boot directory (or partition if boot directory is root directory of a partition) is stored in $LP2BDL
I do use this not just for the automated downloads of the LazY Puppy SFS files, but also it is used in LazY-FReD, LazY-MAID, SFS-P.L.U.S. and there might be some more (which doesn't come to mind at the moment). So, everyone who's using any of my applications should do a serach for the file get_boot_dir and also for the file getbootdir (might be named like this in some cases).
At the time I'm unable to edit my previous RSH posts so I can not update all those applications with the new get:boot_dir script by myself. That's why I did decide to publish this updated version of the get_boot_dir scritpt separately. This updated version will now also work in MacPup 5.2.9!
The attached file is a fake .gz --> remove the .gz and make executable.
Usually it will be fine if this script is called once at bootup from /root/Startup. In my special case I do Jobs in /root/Startup which makes it necessary to have this script executed before executing the scripts in /root/Startup. So, I do execute this from within the script xwin:
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 cannot attach files in this forum You can download files in this forum