Re: busybox hdparm -F is not supported but can be very useful

2023-09-12 Thread Steffen Nurpmeso
Roberto A. Foglietta wrote in : |I hope this helps, R- i have this in a file .busybox-TODO but i think it will never happen: sysklogd (notify) unshare (reaper) acpid->2 rdate (-n, -a, [-v]) less -e s-s-d status --steffen | |Der Kragenbaer,The moon bear, |der holt

busybox hdparm -F is not supported but can be very useful

2023-09-12 Thread Roberto A. Foglietta
Hi, I found this option in hdparm which is not supported by busybox hdparm -F Flush the on-drive write cache buffer (older drives may not implement this). I did not verify the internals of hdparm -F but relying on the man hdparm, I think that it is an interesting

Re: pidof and pgrep are slower than a grep /proc/[1-9]*/comm

2023-09-12 Thread Roberto A. Foglietta
On Wed, 6 Sept 2023 at 18:59, Roberto A. Foglietta wrote: > comw_pid() > { > local str > # RAF: the /proc/$pid/comm contains the first 15 chars + ending \n > str=$(echo -n $*| tr ' ' '\n'| sed -e "s,\(.\{15\}\).*,^\\1$,"| tr '\n' > '|') > str=$(grep -nE "$str" /proc/[1-9]*/comm