Support --mkconfig option

When invoked with --mkconfig <conf_file>, the options are stored in
conf_file and create_ap exits.
This commit is contained in:
Karthik K
2015-05-06 22:38:40 +05:30
parent 3ca3663894
commit 13569a5a42
2 changed files with 81 additions and 32 deletions

View File

@ -2,6 +2,14 @@
# Bash Completion routine for create_ap
#
_use_filedir() {
if [[ $(type -t _filedir) == "function" ]]; then
_filedir
return 0
fi
return 1
}
_create_ap() {
local awk_cmd='
($1 ~ /^-/) {
@ -117,6 +125,9 @@ _create_ap() {
--list)
# No Options
;;
--mkconfig)
_use_filedir && return 0
;;
-g)
# Not going to implement
;;