Sfs files are likable.... having no limits is nice...each machine has its own set of apps to load at boot (but by filename...no boot manager) and a stock of others to load on demand. Typically there are 10-20 loaded. Also means the core pup contains core libraries and yer basic tools and a browser....handy for quick boot/fix stuff.
I also find it the cleanest way to test a new application or compile since the system is left as was after wards (or should be...hence the topic here.)
Ok people...here is my sfs loader
usage is activate /path/to/file.sfs
or add the script to rox's right click menu.
it toggles load or unload...same script.
Try it and see if you still get this strange behaviour.
mike
SFS file issues / concerns (Not-Quite Solved...yet)
- Attachments
-
- activate.tar.gz
- (1.18 KiB) Downloaded 136 times
Mike, your code has this line :mikeb wrote:
Ok people...here is my sfs loader
mike
Code: Select all
RAMSIZE=`free | grep "Total:"| tr -s " " | cut -f 2 -d " "`
Code: Select all
bash-3.00# free
total used free shared buffers
Mem: 3972280 915184 3057096 0 181408
-/+ buffers: 733776 3238504
Swap: 23366352 0 23366352
#110405 fix 'free' applet output format different in later versions of busybox.
Barry's code in pup_event_frontend_d does it like this :
Code: Select all
free_initrd_func() { #UniPup, runs entirely in initramfs.
#110405 fix for later versions busybox...
memFREEK=`free | grep -o 'Mem: .*' | tr -s ' ' | cut -f 4 -d ' '`
swapFREEK=`free | grep -o 'Swap: .*' | tr -s ' ' | cut -f 4 -d ' '`
SIZEFREEK=`expr $memFREEK + $swapFREEK`
SIZEFREEM=`expr $SIZEFREEK \/ 1024`