repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make linux optional as all other configs.
[syslinux-debian/hramrach.git]
/
debian
/
local
/
extlinux-functions.sh
blob
5059a5a1f0e14d74849c5a008082f1f153fe54e4
1
2
# config_file
3
config_to_var
(){
4
echo -n
EXTLINUX_
;
echo
"
$1
"
|
tr
"a-z"
"A-Z"
|
tr
-
_
5
}
6
7
# variable default
8
get_var
(){
9
eval echo
"
\"
\
${$1:-$2}
\"
"
10
}
11
12
# variable value
13
set_var
(){
14
eval
"
$1
=
\"
$2
\"
"
15
}