add clear_config func()

This commit is contained in:
6543 2019-07-13 21:03:30 +02:00
parent 189fd6d56c
commit 90926de1d6
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 35 additions and 0 deletions

35
src/func/clear_config Executable file
View File

@ -0,0 +1,35 @@
#!/bin/bash
#remaster lib
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }

#check_config
function clear_config() {

## Source & Aim options
iso_source=
squashfs_path=
iso_aim=
iso_lable=

## network
proxy_host=
proxy_port=
domain=
nameserver=

## Project / Distro
project=

## LOG Settings
log_file=
log_mail_source=
log_mail_smtp=
log_mail_aim=
log_mail_subject=

}

#this func is standalone executable
[ -n "$1" ] && {
clear_config $@
}