create_ap

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

commit 362bbda3f5de997f3f20a705ff8a78dfe92ce111
parent d8c85b460a01a9cf3f3deb5f6007818a95cd2d5b
Author: oblique <psyberbits@gmail.com>
Date:   Mon Dec 15 21:09:34 +0200

Run clean_exit instead of die on SIGINT/SIGUSR1

Diffstat:
create_ap | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/create_ap b/create_ap @@ -558,8 +558,8 @@ send_stop() { } # if the user press ctrl+c then execute die() -trap "die" SIGINT -trap "die" SIGUSR1 +trap "clean_exit" SIGINT +trap "clean_exit" SIGUSR1 ARGS=( "$@" ) GETOPT_ARGS=$(getopt -o hc:w:g:dnm: -l "help","hidden","ieee80211n","ht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","daemon","stop:","list" -n $(basename $0) -- "$@") @@ -693,7 +693,7 @@ if [[ $DAEMONIZE -eq 1 ]]; then [[ "$x" != "--daemon" ]] && NEW_ARGS+=( "$x" ) done - # fork()/setsid()/fork() + # run a detached create_ap setsid "$0" "${NEW_ARGS[@]}" & exit 0 fi