Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Load config condition to unset INTERNET_IFACE when SHARE_METHOD=none #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions create_ap
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,11 @@ read_config() {
echo "WARN: Unrecognized configuration entry $opt_name" >&2
fi
done < "$LOAD_CONFIG"
# Add condition after loading config to avoid $# count $INTERNET_IFACE.
if [[ "$SHARE_METHOD" == "none" && -n "$INTERNET_IFACE" ]] ; then
echo "WARN: SHARE_METHOD is \"$SHARE_METHOD\" and INTERNET_IFACE is \"$INTERNET_IFACE\". unset INTERNET_IFACE" >&2
unset INTERNET_IFACE
fi
}


Expand Down