oblique
37bdf4a07e
Merge pull request #86 from graysky2/master
...
quote vars to allow for spaces in SSID or password
2015-06-21 16:48:49 +03:00
graysky
2bb20536f7
quote vars to allow for spaces in SSID or password
2015-06-21 09:21:38 -04:00
oblique
fff2242c96
Improvements in --list-clients
...
* Every create_ap has its own dnsmasq.leases
* Handle the cases of virtual interfaces
* Pass <id> as an argument in list_clients function
* Use `die' instead of echo;exit
2015-06-09 22:51:02 +03:00
oblique
b4db372bef
Redirect warning to stderr
2015-06-09 22:51:02 +03:00
oblique
33ed352b5c
Show virtual interface in `--list-running'
2015-06-09 22:51:02 +03:00
oblique
c04cce072c
Merge pull request #82 from hashken/list_connected
...
Add switch to list connected clients
2015-06-09 22:50:14 +03:00
Karthik K
3fd94ce9c3
Add switch --list-clients
...
--list-clients <id> prints the list of connected clients associated with
<id>. <id> can either be a wifi iface name or pid of a create_ap
instance.
2015-06-03 13:07:29 +05:30
Karthik K
38db906a24
Change switch --list to --list-running
...
* --list is still supported for backward compatability, but will
neither have an entry in help output nor will have bash completion
support
2015-06-01 15:13:30 +05:30
oblique
0f5a503c79
Merge pull request #77
...
Add `--config' and `--mkconfig' option
2015-05-24 13:27:23 +03:00
oblique
681946dd6c
Merge pull request #79
...
Add `--psk' option
2015-05-24 12:58:50 +03:00
oblique
ad377c9d9f
Add `--psk' in bash_completion
2015-05-23 20:59:03 +03:00
oblique
8c7c5dba27
When we read PSK from stdin, don't hide it from the user.
2015-05-23 20:57:15 +03:00
oblique
f62b410aaa
Allow empty PSK (i.e. open network)
2015-05-23 20:55:53 +03:00
oblique
b47b321763
Use boolean flag for the `--psk'
2015-05-23 20:52:32 +03:00
oblique
df727ff5fd
Use option names for positional arguments instead of ARG[1-4]
2015-05-17 19:10:55 +03:00
oblique
ce8d4c9ee5
All positional arguments are overridden if user pass at least one of them
2015-05-17 19:08:18 +03:00
oblique
92d35c0da3
Fix daemonize infinite loop
...
If `DAEMONIZE=1' is set in the config file then create_ap tries
to create daemon process all the time. This is done because we were
removing `--daemon' option from the parameters of the daemon process.
We fix this by using an environment variable instead.
2015-05-17 18:44:04 +03:00
oblique
ee69810dc5
Fix typo in CONFIG_OPTS array
2015-05-17 18:42:25 +03:00
solsTiCe d'Hiver
bae72de6dc
Allow the use of 64 hex digits pre-shared-key
...
hostapd allow the use of a 64 hex digits pre-shared-key:
it is the combination of SSID and ASCII passphrase.
The user can use wpa_passphrase command to calculate it.
Add a --psk command switch to allow that
2015-05-13 15:15:51 +02:00
Karthik K
583ef73fa1
Support --config option
...
--config <conf_file> loads configs from conf_file
2015-05-09 13:57:23 +05:30
Karthik K
13569a5a42
Support --mkconfig option
...
When invoked with --mkconfig <conf_file>, the options are stored in
conf_file and create_ap exits.
2015-05-09 13:57:18 +05:30
Karthik K
3ca3663894
Print descriptive messages for several switches
...
* Print messages for terminating switches like --list, --stop,
--fix-unmanaged and --daemon
* Minor change in help string
2015-05-06 22:51:04 +05:30
oblique
3f08801967
Enable /proc/sys/net/ipv4/conf/INTERFACE/forwarding on NAT
...
Fix #76
2015-05-02 02:25:30 +03:00
oblique
f45e224996
Use cp -n' instead of
[[ ! -f $dest ]] && cp $src $dest'
2015-05-02 02:13:33 +03:00
oblique
8f112390b2
Kill haveged only if we are the last create_ap instance
2015-05-02 01:01:33 +03:00
oblique
661a8aa1b7
Fix race-condition on interface creation
2015-05-01 21:39:08 +03:00
oblique
66e8ccc814
Have a common directory for common values/settings
...
This fix the following bug:
1) Run create_ap instance A
2) Run create_ap instance B
3) Stop instance A
After step 3, /proc/sys/net/ipv4/ip_forward is set back to 0,
so clients of instance B they don't have Internet anymore.
2015-05-01 21:25:49 +03:00
oblique
fee914c359
Remove mutex locking between subprocesses
...
Bash is not flexible and the recersive mutex lock that was implemented
in the previous commit is full of undefined behaviors if piping is
used. We don't actually need to lock between subprocesses so with
this commit we lock only between other create_ap process.
2015-05-01 21:14:54 +03:00
oblique
4ea5d02193
Implement recursive mutex that works across processes/threads
2015-04-26 16:32:42 +03:00
oblique
cafef2e185
Make all function variables local
2015-04-17 22:35:58 +03:00
oblique
bddf2dd0e8
Merge pull request #66 from hashken/bash_completion
...
Add bash completion
2015-04-16 22:12:23 +03:00
Karthik K
e828664edd
bash_completion: Bug fixes and improvements
...
* Correct switch --ieee80211 to --ieee80211n
* Correct switch -p to -g
* Get list of valid channels from iw list
* Add country code 00
* Get completion for --stop switch from output of --list
2015-04-16 23:13:36 +05:30
Karthik K
8a96c7f9cb
Add extended bash completion for all switches
2015-04-16 22:39:46 +05:30
Karthik K
9c24f50dee
Add new file that provides bash completion routine
2015-04-16 22:39:46 +05:30
oblique
27c39948ca
Make --list to work from any user
2015-04-16 19:49:15 +03:00
oblique
81f5a65c0b
Merge pull request #67 from hashken/help_error_code
...
Ensure error code is 0 when --help is invoked
2015-04-12 17:33:47 +03:00
oblique
f8ebf4ae27
Merge pull request #68 from hashken/progname_optimize
...
Invoke basename only once to obtain script name
2015-04-12 17:33:31 +03:00
Karthik K
795bb14a38
Invoke basename only once to obtain script name
...
Minor optimization that ensures basename is not invoked multiple times.
2015-04-12 19:44:42 +05:30
Karthik K
bec82aa65e
Ensure error code is 0 when --help is invoked
2015-04-12 19:38:08 +05:30
oblique
1ec0780599
Masquerade only AP subnet
2015-04-05 19:58:07 +03:00
oblique
4d654b76a1
Load nf_nat_pptp module if it exists
...
This will enable clients to establish PPTP connections.
2015-04-01 23:50:57 +03:00
oblique
56b155304c
Merge pull request #64 from hashken/help_stdout
...
Redirect --help output to stdout instead of stderr
2015-03-28 21:01:33 +02:00
Karthik K
fbeb5c918a
Redirect --help output to stdout instead of stderr
2015-03-28 18:37:07 +05:30
oblique
d0a013eaf8
Check every 2 seconds if haveged is needed
2015-03-25 01:23:08 +02:00
oblique
d55adb7d50
Add version number, v0.1
2015-03-13 19:55:20 +02:00
oblique
04fa4860d1
Use `-w 2' with rtl* drivers
2015-03-04 23:56:11 +02:00
oblique
b750e70de6
Add instructions for Realtek adapters
2015-03-04 23:56:11 +02:00
oblique
f06e24721a
Use ip' instead of
brctl'
...
This removes bridge-utils from dependencies.
2015-02-22 22:01:31 +02:00
oblique
796c420589
check if bridge-nf-call-iptables exists before we use it
2015-02-22 22:01:31 +02:00
oblique
9ecb40eb6d
quote string in [[ -n $str ]]
2015-02-22 22:01:25 +02:00