265 Commits

Author SHA1 Message Date
258fbc1f94 increase the sleep of networkmanager_rm/add_unmanaged 2014-08-19 00:06:34 +03:00
701becace9 fix a typo 2014-08-17 04:43:35 +03:00
92b696efcf handle service's stop correctly 2014-08-17 04:22:23 +03:00
d388c593ab disable SIGINT in cleanup(), so the user will not be able to interrupt it 2014-08-17 02:16:12 +03:00
4758bcf6d9 Merge branch 'hashken-hostapd_bug' 2014-08-17 01:16:50 +03:00
d9284c3d6b Check version of NetworkManager
* Check the version of Network Manager and accordingly issue commands
as nmcli >= 0.9.10 is not backwards compatible
* Also, check if NetworkManager is running before issuing related
suggestions
2014-08-17 01:14:24 +03:00
0e9a81ff94 Give remedial suggestion for hostapd bug
Hostapd v2 introduces a bug which currently throws the following error
and initialization fails
    nl80211: Could not configure driver mode
    nl80211 driver initialization failed.
    hostapd_free_hapd_data: Interface wlp3s0ap wasn't started

More Info: https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1289047

Give a suggestive message to the user when hostapd fails because of the
above bug outlining the workaround mentioned in the above bug report.
2014-08-17 01:13:42 +03:00
9ab97af451 networkmanager_is_running: we don't need to redirect stderr in /dev/null 2014-08-17 01:10:50 +03:00
89a457d597 Add `version_cmp' function 2014-08-16 23:13:32 +03:00
38063a6160 systemd service: start create_ap after network.target 2014-08-16 18:31:29 +03:00
609949d26a make dnsmasq able to run even if another instance exist 2014-08-15 11:41:30 +03:00
e37caff43d README.md: Update installation section
Fixes #27
2014-08-04 15:17:43 +03:00
2491ef2a3a Better parse of nmcli output 2014-08-04 14:03:15 +03:00
6acf353c9d networkmanager_is_running: Use 'nmcli g' first and if it fails fallback to 'nmcli nm' 2014-08-03 14:45:27 +03:00
ed7d3f36f9 Use 'nmcli' to determine if NetworkManager switched adapter to unmanaged
Fix #29
2014-07-28 19:24:02 +03:00
709652041f Add CCMP in wpa_pairwise of hostapd.conf 2014-06-07 16:53:28 +03:00
cfc9630338 Merge pull request #22 from eduardohenriquearnold/master
Update service file to fix cleaning process when service is requested to stop
2014-06-04 09:49:48 +03:00
993bdb9ce6 Update service file to fix cleaning process
Inserted the ExecStop directive to kill the hostapd process in order for the script to be able to receive the SIGINT signal. This enables the cleaning process to work when requesting the service to stop.
2014-06-03 13:45:19 +01:00
104c55606f We don't need to set an IP to the bridged interface
Fix #18
2014-04-05 22:08:33 +03:00
ef1a466a13 Merge pull request #17 from oaix/master
add IEEE 802.11n support
2014-04-05 12:47:06 +03:00
1cd94e81d0 add IEEE 802.11n support 2014-04-03 20:57:26 +08:00
d556cd1fd2 Merge pull request #12 from mika/master
Redirect error messages to stderr
2014-02-21 10:11:12 +02:00
b77ccb0ecc Redirect error messages to stderr 2014-02-21 08:35:41 +01:00
a368035082 Add error messages about --no-virt 2013-12-23 00:32:25 +02:00
29d609cf24 Add --no-virt option
Fixes #10
2013-12-17 21:48:59 +02:00
5abc21fb7e Check if the directory of NetworkManager.conf exists and not the actual file 2013-12-17 21:39:19 +02:00
3c3b3b32d6 Makefile: copy create_ap.service only if /lib/systemd/system exists 2013-12-15 16:29:08 +02:00
452689bdbb Merge branch 'WebReflection-patch-1'
Fixes #8
2013-12-15 12:38:48 +02:00
46723a9686 Update patch for '--driver' argument 2013-12-15 12:38:06 +02:00
ba9ffebcad make hosted able to use rtl871xdrv or other drivers
there are devices that are not supported as nl80211 … this change makes possible to specify `--driver rtl871xdrv` when/if needed
2013-12-14 17:18:54 -08:00
94bbf1d030 Improve automation for NetworkManager's unmanaged-devices 2013-12-05 21:27:31 +02:00
2b40f03e45 Minor change 2013-12-04 16:19:36 +02:00
1d809958d3 Fix a typo 2013-12-04 16:19:25 +02:00
3c7b4079c5 Rephrase 'Useful informations' in usage 2013-12-04 16:01:02 +02:00
8bee5d61ba Update README file 2013-12-04 15:59:13 +02:00
b39f4466de Add Makefile 2013-12-04 15:38:51 +02:00
bc19cd99dd Add BSD License 2013-12-04 15:14:15 +02:00
d03951bf29 Set broadcast ip address 2013-12-02 23:53:38 +02:00
67588aa7a7 Make sure the virtual interface will have a new mac address.
Fixes issues #6 and #7
2013-12-02 22:02:31 +02:00
40249cfd93 bridge mode now works with UFW 2013-11-29 23:49:47 +02:00
76fc2998a4 Add trap for SIGINT 2013-11-29 23:28:57 +02:00
4d7a9c372b Make no Internet sharing mode to work with UFW 2013-11-29 23:17:13 +02:00
3d5849e6a4 Add iptables to make it work with UFW 2013-11-29 22:25:10 +02:00
78adcce380 Merge pull request #5 from ichpuchtli/systemd-service
Add systemd service
2013-11-29 12:23:27 -08:00
b5162fe9a4 updated README to include systemd service usage 2013-11-30 00:03:34 +10:00
a746730072 added systemd .service file example 2013-11-29 23:21:10 +10:00
984f8e7fc9 If WiFi interface is already set to a channel, don't try to change it 2013-11-24 18:42:32 +02:00
e8fd319aac die on failure 2013-11-24 16:11:55 +02:00
eebf018b6c Create virtual interface. You can now use the same interface to get and share Internet. 2013-11-24 14:48:14 +02:00
fb266ab798 Automatically set/unset the unmanaged device in Network Manager 2013-11-24 14:46:46 +02:00