84 |
eecho "DEBUG: ${@}" |
eecho "DEBUG: ${@}" |
85 |
} |
} |
86 |
|
|
87 |
|
# source a file with debug information |
88 |
|
include() |
89 |
|
{ |
90 |
|
local retval |
91 |
|
|
92 |
|
if [ -f $@ ] |
93 |
|
then |
94 |
|
decho "including '$@'" |
95 |
|
source $@ |
96 |
|
retval=$? |
97 |
|
else |
98 |
|
decho "include: '$@' not found" |
99 |
|
retval=1 |
100 |
|
fi |
101 |
|
|
102 |
|
return ${retval} |
103 |
|
} |
104 |
|
|
105 |
# adds a line to a configuration file defined by the $CONFIG variable |
# adds a line to a configuration file defined by the $CONFIG variable |
106 |
# $CONFIG="/etc/conf.d/mcore" addconfig 'LIBDIR="/usr/lib"' |
# $CONFIG="/etc/conf.d/mcore" addconfig 'LIBDIR="/usr/lib"' |
107 |
addconfig() |
addconfig() |