Dale Long wrote:

> Will lua add to the size of Oxygen or will it justify itself nicely (and
> reduce size)? I think the latter.

ash is 100k, lua with POSIX AND sockets is 98k - a nice tradeoff.  Lua
by itself (without extensions) is 72k.  However, all of the startup
scripts are in /bin/sh, and the new setup program is all in sh.  So ash
still needs to be loaded, in which case we've actually added another
100k to the disk.

There are a number of reasons I was looking at Lua:
1. Reduce size of root.lrp
2. Learn a new language :-)

Can't eradicate /bin/sh for several reasons:
1. It's everywhere
2. It's used for user login shells
3. It's used for initialization scripts
4. The setup program uses it.

> Here is tomsrtbt change log detailing lua additions and some busybox
> relate items and changes.

I was very interested in this... Here's my notes...

> I have cut a few lines out:
> "
> 1.7.243  replace mawk with Lua, replace all awks with luas,

...don't have awk as an add-on...

>          add basename,
>          fix filesize, replace /bin/login sh/awk with /usr/bin/login lua,
>          cmp in lua, dhcpcd replaced with dhcpcd-- in Lua, do pcmcia start
>          and eval `dhcpcd--` in rc.custom.gz

Not sure about the rest, but basename is either a part of busybox or
asmutils.

> 1.7.270  del mklost+found, buildit changes, lua startup changes, license

tomsrtbt changed license?

> 1.7.289  add zcat yes xargs which wget usleep true syslogd klogd
>          nslookup lsmod logger loadkmap killall gunzip egrep [
>          due to new busybox.
>          Remove snarf, several luas, loadkeys
>          replace telnet and ifconfig and route and cmp and wc maybe
>          others.
>          add many more keymaps

busybox in Oxygen comes with most of that except wget (in favor of the
real thing) and nslookup and possibly zcat.

> 1.7.333  remove 'regex' and 'iregex' from gnu-find
> 1.7.335  newer busybox, maybe less bugs.  Password now md5-hashed.
> 1.7.35x  replace basename dirname false pwd sleep sync tee true yes chroot
>          date
>          dmesg mkdir ln wc df ps hostname lsmod mv rmdir rmmod swapon
>          swapoff
>          touch update with equivalent (I hope) asmutils.  Add sln poweroff
>          strings domainname.  Remove memtest, not trustworthy enough on
>          enough
>          hardware to justify the space.  Remove stty, add 'necho' and
>          'yecho'
>          to turn tty echo off and on.
> 1.7.35x  busybox fixes and stabilizations.

Most of that list is in busybox in Oxygen already; some are asmutils as
he mentions there.

Sounds as if he was using awk as a scripting language in tomsrtbt, and
replaced it with Lua.  Oxygen and LEAF have no such scripting language
outside of /bin/sh.  It's this I was looking for: something more
powerful than /bin/sh, but the same size or smaller.

Lua may be it - though I found the text matching to be awkward.  Either
I don't understand it or they didn't explain it well enough or both.

Best I can see is to try and shoehorn Lua onto the disk new if it is
appropriate.  Having ash separate also allows the user to replace ash
with something like bash or pdksh if they want.

However, it MUST remain on the boot disk since I won't have a distro
that can't boot and be usable with more than a single disk.  Doesn't
mean it'll be an automatic firewall, but at least it is a working Linux
system.

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to