Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Now using the ret_msg variable to output some error messages.
|
|
"cp" can be used to copy data or devices.
Also, an error is now reported when args are missing for a command or
when a command is not understood.
|
|
We can gain about 100 bytes using this.
|
|
EQ is useful to compare strings and act accordingly. It is different
from "te" in that it does not specifically check environment variables
for a fixed string, but has access to environment variables as well as
command line parameters.
Example :
eq ${quiet+set} ""
&{
ec "done."
}
|
|
The replacement operator is useful in a number of situations, for instance
to simply check for valueless arguments and recopy their names like this :
mt ${root-/dev/ram0} /mnt/root ${ro+ro} ${rw+rw}
|
|
|
|
The cmdline parser was designed to be used only once! Fixing it also
reduced the executable size by 32 bytes.
|
|
It is sometimes necessary to have access to the root= or init=
kernel variables and those are not passed to the environment.
Now when referencing a variable, init first checks for an environment
variable then falls back to /proc/cmdline.
This will help for instance in such cases :
mt ${root} /mnt/root ${rootfstype-ext2} rw
in ${init-/sbin/init}
|
|
cd <dir> does chdir(dir)
cr <dir> does only chroot(dir)
sw <dir> does chroot(dir), chdir(/) and reopens the console
|
|
Many scripts are written with a terminating "in /bin/sh", but this
causes some trouble because /bin/sh is passed init's args which are
invalid for sh.
A new "br" command (for "branch") works exactly like "ex" except
that it does not return in case of success. It simply does a pure
execve(). It also supports arguments if necessary.
So as of now, it is recommended that preinit scripts finish with
"br /bin/sh".
|
|
The forked processes used to set up a controlling tty. But this
did not properly work because they had to switch from a different
session than the parent's, leading to lots of output being lost
when the process exited and the session terminated. The solution
was to use 2 processes, one to perform the work, and the other
one to maintain the session the time needed for the chars to
reach the tty.
|
|
The version was bumped to flxutils-0.1.30-flx0.2 due to the fact that
it remained for a long time at this version.
Some binary files which were mistakenly versionned have been removed.
|
|
It is now possible to use environment variables within scripts.
Two forms are supported :
${variable}
is replaced with the variables's value or an empty
string if the variable is not set
${variable-default}
is replaced with the variable's value, or the "default"
string if the variable is not set.
The variables are not evaluated within quotes, but quotes can
be temporarily closed to reach the variable. For instance :
ec "my TERM is ${TERM}"
will output "my TERM is ${TERM}"
ec "my TERM is "${TERM}
will output "my TERM is linux"
|
|
With this add-on, Ctrl-C works for any program executed from
init.
|
|
select only the packages containing a build.cfg * newpkg: do not propose a list of multiple identical new names * release: also identify non-shell text scripts. * release: put only package's basename in changelogs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|