diff options
Diffstat (limited to 'lib/_ak_settings')
-rwxr-xr-x | lib/_ak_settings | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/_ak_settings b/lib/_ak_settings index 5b6b0bb..3345e49 100755 --- a/lib/_ak_settings +++ b/lib/_ak_settings @@ -18,7 +18,17 @@ ### along with this program. If not, see <http://www.gnu.org/licenses/>. ### -source $AK_LIBDIR/_ak_script +source $AK_LIBDIR/_ak_lib_load +_ak_lib_load _ak_script + +if [ ! -d "${AK_WORKDIR}" ] +then + _ak_log_error "No workdir" + exit 4 +fi + +export AK_SETTINGS="$AK_WORKDIR/settings" +_ak_check_and_create_dir $AK_SETTINGS function _ak_settings_get(){ if [ ! -z "$1" ] && [ -n "$1" ] @@ -126,9 +136,11 @@ function _ak_settings_set(){ } function _ak_settings_get_sub(){ - _ak_not_implemented + _ak_not_implemented ${FUNCNAME} } function _ak_settings_get_all(){ - _ak_not_implemented + _ak_not_implemented ${FUNCNAME} } + +_ak_log_debug "_ak_settings loaded $(caller)" |