add cinit-0.3pre15
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
36de902919
commit
440caeb555
1013 changed files with 99995 additions and 0 deletions
18
software/cinit/browse_source/cinit-0.3pre15/scripts/cinit.read-conf
Executable file
18
software/cinit/browse_source/cinit-0.3pre15/scripts/cinit.read-conf
Executable file
|
|
@ -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