Created a boot CD/DVD with a version of the earlier code I posted in a script in /root/Starup folder and then created another script on my HD containing the following code, and it works well.
CD boots, puppy asks for locale etc data, but minimise that initially, and all of the nvidia, firefox, flash SFS's, a flash patch and abiword PET's all start loading. Just click the prompts to OK etc as they pop up.
Then maximise the locale window again, adjust as required, click the xorgwizard option also, and it drops to terminal mode, accept the PROBE choice, set the resolution level and xwin restarts OK.
The code could be extended to do other tasks as desired, maybe apply a patch or copy in directories to /root as desired etc.
Sort of DIY save/load file in some respects.
I'm increasingly using ram boot more often now. Green space box/control in the taskbar showing how much out of 1.7GB is remaining (not sure why it shows 1.7GB when I only have 1.5GB of RAM, but guess that's perhaps because I've also a 2GB swap partition, or maybe due to things being compressed ???).
Code: Select all
#!/bin/bash
#
# I've added a script to the Puppy boot CD's Startup
# directory that calls this script that can be on
# any of the root directory of a partition
# Useful for loading things semi automatically
# when running pfix=ram
# Only called when running pfix=ram
# but I include another test here just in case
# if not second time around (locale been configured) then load sfs's
# otherwise 2nd time around asks if you want to unload them
# I only check for the first one in order to determine if continue or not
[ `cat /etc/rc.d/PUPSTATE | grep PUPMODE` != "PUPMODE=5" ] && exit
var=`cat /etc/rc.d/BOOTCONFIG | grep -E "EXTRA" | grep -E "nvidia"`
if [ -n "$var" ]; then
exit
fi
# I did try backgrounding so simultaneous loading, but didn't work well
sfs_load -q /mnt/sda4/nvidia-glx-sdl-295.53-slacko.sfs
sfs_load /mnt/sda4/firefox-28.0.sfs
petget /mnt/sda4/533t-SFSs/SFSs/abiword-2.8.6-gnumeric-1.10.17-goffice-0.8.17-dpup.pet
sfs_load /mnt/sda4/flash10_.sfs
# flash10 patch
/mnt/sda4/fix-flash.sh
# Could perhaps even grap things via the net
# but would need to have set up network first
#
#wget -c http://URL/package.pet
#pet2tgz package.pet
#tar -xf package.tar.gz /
#/.pinstall.sh
#rm /.pinstall.sh
Mostly I don't touch/use folders/directories under /root - other than for configuration changes. All the things I do use are stored on the HD, so generally from session to session everything under /root stays much the same for me.