Hello :)! I'm at it again; this time I cannot avoid using tr . I want to read a file with NUL-separated strings to a variable, using only shell built-ins, e.g. /proc/1/cmdline # hexdump -C /proc/1/cmdline 00000000 2f 62 69 6e 2f 62 75 73 79 62 6f 78 00 69 6e 69 |/bin/busybox.ini| 00000010 74 00 |t.|...
The tty -replacement is solved with only shell built-ins: #!/bin/sh # MHHP, 140811 MAJmin(){ INP=$7 # Major is contained in bits 8-15 # Minor (low bits of) is contained in bits 0-7 (( $7 >= 65536 )) && exit 1 # If >=65536, high bits of minor are contained in bits 20-31 (( MAJ = $INP/256 )) (...
That's a very good question -I'm sure you'll have fun finding out! Yes, I did :). Nearly everything under /proc survives a remount -I think only references to the root device change. Yes, so it seems. I tried writing to a few (harmless) files in /proc and the values written survived. Cheers :)/MHHP
Thanks, amigo! I have nothing against the patch at all, it's just me trying to learn more about procfs. A follow-up question then pops up (using printk as example): If, say, some loglevel values were written to /proc/sys/kernel/printk just after the mounting of proc in initrd_/init would they be car...
In most puppies the kernel loglevel is set to: # cat /proc/sys/kernel/printk 3 4 1 3 due to (I think) compiling the kernel with the BK kernel printk.c.patch (or iguleder's lower_verbosity.patch): --- kernel/printk.c 2010-02-24 18:52:17.000000000 +0000 +++ kernel/printk.cNEW 2010-03-02 17:28:42.00000...
Hello :)! I've been making a few replacements for standard utilities using only shell built-ins (don't ask why :) :roll: ). But, now I'm really stuck at this "tty"-replacement; I cannot find a way to avoid " ls " - is it at all possible? tty #!/bin/sh # Uses "ls" FILE=/...
Hello! I thought a bit about the posted ideas of keeping (extra-)sfs-loading out of init and leaving it to sfs_load ... So, if I may join the discussion, for a testing environment (leaving some _serious de-crufting_ for later) where loading of other files than savefile, pupsfs, adrv, ydrv and zdrv i...
Hello :)! Silence might not always be preferred ... Strange bug encountered while trying to install lvm2 (tried both packages offered in the package manager). Just lvm2 out of the few packages I installed seems to be affected. The package manager hangs when installing the package, and the shell gets...
EDIT: @MHHP. It seems to me that chooselayout should actually be a symlink to quicksetup in /usr/sbin. If possible, can you try that and report your findings. Thanks in advance! :) We will get there! A symlink works, as well :) . (Yeah, should have opened the file chooselayout also, just saw the &q...
Hello :)! Yes, I know it's early alpha-stage ... ... But, this " oversight " (or BUG :P) pertains to alpha, beta, gamma, delta, epsilon, zeta, ... , omega , and especially the Swedish letters åäö , as well as to the placements of ?=`|()\ etc. on the kbd. Couldn't get my keyboard-setting to...
Still haven't got any network- or moral expertise ... :) Just playing around with my limited set-up. Connected: # time for i in a b c d e f g h i j k l m;do traceroute -m 5 ${i}.root-servers.net|head -n 1|grep -o '([0-9]*.[0-9]*.[0-9]*.[0-9]*)';[ $? == "0" ] && echo "Have conn...
@01micko I'm not a network expert, nor will I delve into the morality of your suggestion. That said, I'll oppose to the suggested am-I-alive-call from a more practical viewpoint; while still exiting with error-code 0, the time consumed in the execution of the command is extensive: # time traceroute...
Hello! While BarryK has been busy de-crufting puppy-scripts, with respect to pupmodes, for his quirky project, I felt a severe tinkering-itch and re-crufted some. Anyway, just for my own amusement I made quirky-6.0.1 run in quirkmode=8, i.e. like a full install but, everything held in a file system ...
Interesting thing MHHP ! The initrd.gz /init tends to change unexpectedly . It writes all possible dirs and files into the savefile . My question is about that line : + [ ! -d /initrd"$SAVE_LAYER"/root ] && [ ! -d /initrd"$SAVE_LAYER"/usr ] && [ ! -d /initrd"...