Well, first, you have to post from the address you are subscribed from, or
the remailer will assume it is probably spam and not send it to the list.

> #cmd: which <cmd> = searches for <cmd> in the PATH. Wildcard "*"
> allowed!
> cat >/usr/bin/which <<EOF
> for a in \`echo \$PATH|sed 's/:/ /g'\`;do ls -1 \$a/\$1 2>/dev/null;done
> EOF

I'll test this one, it is smaller than the busybox which.

> #cmd: touch <file> = workaround to create files

The asmutils touch is now 157 bytes and probably OK.

I probably will eventually enhance some of the asmutils to be a little
more verbose when they fail...  Right now they give you nothing.

> I'm really missing these shortcuts (PLEASE ;-):
> ### Aliases in /etc/profile
> #cmd: l = ls -l

Aliases will probably never happen.  They take bytes without adding
functionality, only adding convenience or speed of input, which is not
important in a recovery emergency.  You can use rc.custom.gz to put them
in yourself without rebuilding, but they will never end up in the default
image, on principle.  It is also unlikely I would ever add an alias in a
case where I myself use 'ls -l' and don't even believe in the shortcut.

> I've created an ascii to nearly text script, using lua:
> ---8<---
>   line=gsub(line,"&amp;","&")
>  
> line=gsub(line,"<[Hh][Rr]>","-------------------------------------------")
>   line=gsub(line,"<[Bb][Rr]>","\n")
> --->8---
> 1k: http://www.fastado.de/users/jkorte/a2nt
> Compressed about 300 Bytes.
> Espescially with Tags in Remarks <!-- <a>...</a>--> there are problems.
> But it is enough to read some news.

It is probably worth trying to find a really really small web browser
thing at some point, because one might have to go to web sites when
recovering, but, you may want to look at MuLinux if you find yourself
wanting applications support or ease of use stuff.  Tomsrtbt is intended
for rescue and recovery, emergencies, and somewhat as a toolset for
unexpected situations, but it is not intended as a floppy linux platform
for general purpose use on limited resource machines- note that I am more
likely to devote space to RAID controllers and Reiser-fs- because I am
aiming more at system admins of 'enterprise' installations, than I am at
old machines without hard drives...

> #cmd: lspci = lists pci devices
> echo cat /proc/pci >/usr/bin/lspci

Again... if you can do it in one line, you don't need an alias, you need a
touchtyping class...  just my personal preference, to some degree, I am
someone who has not yet bothered to learn how to use filename completion
even in bash.  I just type what I want...

> #cmd: swaponauto = Detect swap device on harddisk and swap on...
> cat >/usr/bin/swaponauto <<EOF
> p=\`fdisk -l| grep "Linux swap"|awk '{print \$1}'\`

On principle I do not automatically do anything to hard drives by
default.  The risk is too great that someone's machine will have a
mis-typed partition they are recovering, or a locked-up driver, and
the script will screw more up than it will help.  Again, this it going
to say manual-transmission, 4-on-the-floor, no-power-options, and no
upholstery.  If you need to do this when you are rescuing a system, you
will have to manually type fdisk -l then manually do the swapon
commands.  Heck, if anything, I am likely to *remove* the automatic pcmcia
detection and dhcpcd network stuff- mostly the reason I leave it in there
is that people don't realize it is supported and it seems more harmless
than touching the hard disks.

-Tom

Reply via email to