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
13
software/cinit/browse_source/cinit-0.0.4/bin/cinit.read-conf
Normal file
13
software/cinit/browse_source/cinit-0.0.4/bin/cinit.read-conf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
# Nico Schottelius
|
||||
# cinit: read configuration into variables
|
||||
#
|
||||
|
||||
CONFS=$($(dirname $0)/cinit.get-confdir)/../conf/*
|
||||
|
||||
for conf in $CONFS; do
|
||||
NAME="$(basename $conf | tr a-z A-Z)"
|
||||
eval $NAME="$(head -n 1 $conf)"
|
||||
eval export $NAME
|
||||
# eval echo $NAME = \$$NAME
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue