aboutsummaryrefslogtreecommitdiff
path: root/init (follow)
AgeCommit message (Collapse)AuthorFilesLines
2007-12-16init: implement the "ca" command to cat a fileWilly Tarreau1-5/+15
2007-12-16init: small cleanup, removed one write()Willy Tarreau1-5/+2
Now using the ret_msg variable to output some error messages.
2007-12-16init: implement the "cp" commandWilly Tarreau1-4/+52
"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.
2007-12-16init: disable omit-leaf-frame-pointerWilly Tarreau1-1/+1
We can gain about 100 bytes using this.
2007-12-16init: added the 'eq' command to compare stringsWilly Tarreau1-1/+9
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." }
2007-12-16init: add support for ${var+val} constructWilly Tarreau1-9/+16
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}
2007-12-16init: fixed small bug in variable name parser causing infinite loopsWilly Tarreau1-2/+3
2007-12-16init: fixed variable checking out of cmdlineWilly Tarreau1-13/+12
The cmdline parser was designed to be used only once! Fixing it also reduced the executable size by 32 bytes.
2007-12-16init: add checks for the kernel's cmdlineWilly Tarreau1-6/+7
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}
2007-12-16init: add new commands "cd", "cr" and "sw"Willy Tarreau1-1/+34
cd <dir> does chdir(dir) cr <dir> does only chroot(dir) sw <dir> does chroot(dir), chdir(/) and reopens the console
2007-12-16init: add the "br" command to branch without returningWilly Tarreau1-7/+14
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".
2007-09-25init: fix controlling tty for execve()Willy Tarreau1-5/+40
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.
2007-09-25[RELEASE] flxutils-0.1.30v0.1.30Willy Tarreau2-0/+0
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.
2007-09-24init: provide support for environment variables in the scriptsWilly Tarreau2-9/+137
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"
2007-09-24init: set controlling TTY when executing programsWilly Tarreau3-11/+12
With this add-on, Ctrl-C works for any program executed from init.
2006-07-26[MEDIUM] - pkg-0.7.1 : * newpkg: don't look for newname in .. anymore, and ↵Willy Tarreau1-0/+1808
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.
2006-07-26[RELEASE] flxutils-0.1.25v0.1.25Willy Tarreau1-1/+1
2006-07-26[RELEASE] flxutils-0.1.24v0.1.24Willy Tarreau3-8/+67
2006-07-26[RELEASE] flxutils-0.1.20v0.1.20Willy Tarreau2-1802/+0
2006-07-26[RELEASE] flxutils-0.1.19v0.1.19Willy Tarreau5-14/+3592
2006-07-26[RELEASE] flxutils-0.1.14v0.1.14Willy Tarreau1-27/+22
2006-07-26[RELEASE] flxutils-0.1.12v0.1.12Willy Tarreau1-2/+3
2006-07-26[RELEASE] flxutils-0.1.11.2v0.1.11.2Willy Tarreau2-28/+166
2006-07-26[RELEASE] flxutils-0.1.11.1v0.1.11.1Willy Tarreau5-149/+708
2006-07-26[RELEASE] flxutils-0.1.4.2v0.1.4.2Willy Tarreau10-0/+2139