import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
3729fc68eb
commit
423ba10303
13396 changed files with 269468 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
# Nico Schottelius
|
||||
# cinit: read configuration into variables
|
||||
# ~ 2005
|
||||
#
|
||||
|
||||
CONFS=$($(dirname $0)/cinit.get-confdir)
|
||||
|
||||
set -e
|
||||
|
||||
for conf in ${CONFS}/*; do
|
||||
NAME="$(basename $conf | tr a-z A-Z)"
|
||||
if eval test -z \$$NAME; then
|
||||
eval $NAME=\"$(head -n 1 $conf)\"
|
||||
eval export $NAME
|
||||
fi
|
||||
# eval echo $NAME = \$$NAME
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue