create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 5abc21fb7e0297909021815371b838e79367690a
parent 3c3b3b32d6b8c38c5493621f58a2f79634eecce6
Author: oblique <psyberbits@gmail.com>
Date:   Tue, 17 Dec 2013 21:39:19 +0200

Check if the directory of NetworkManager.conf exists and not the actual file

Diffstat:
Mcreate_ap | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/create_ap b/create_ap @@ -78,7 +78,8 @@ ADDED_UNMANAGED=0 NETWORKMANAGER_CONF=/etc/NetworkManager/NetworkManager.conf networkmanager_add_unmanaged() { - [[ ! -f ${NETWORKMANAGER_CONF} ]] && return + [[ ! -d ${NETWORKMANAGER_CONF%/*} ]] && return + [[ -f ${NETWORKMANAGER_CONF} ]] || touch ${NETWORKMANAGER_CONF} if [[ -z "$2" ]]; then MAC=$(get_macaddr "$1") else