MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.72k stars 492 forks source link

Networking | Roll out allow-hotplug as standard #305

Closed Fourdee closed 8 years ago

Fourdee commented 8 years ago

as per https://github.com/Fourdee/DietPi/issues/273#issuecomment-215965411 allow-hotplug will allow users to physically disconnect/reconnect with no need for running systemctl restart networking.service.

Fourdee commented 8 years ago

note to self. Test if wifihotspot is compatible with allow-hotplug

Runs fine with allow-hotplug. However, requires the following to be run after a physical wlan reconnection:

service hostapd stop
ifdown wlan0
service hostapd start

root@DietPi:~# service hostapd status
● hostapd.service - LSB: Advanced IEEE 802.11 management daemon
   Loaded: loaded (/etc/init.d/hostapd)
   Active: active (running) since Sat 2016-04-30 15:32:20 BST; 3s ago
  Process: 1476 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS)
Fourdee commented 8 years ago

Done, available in v117: https://github.com/Fourdee/DietPi/commit/2ad5f27c406c98c525a42a723cb4516077ba89f3