SHARE
TWEET

Untitled

a guest Jun 26th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rpi ~$ sudo -Es
  2. rpi ~# mv /etc/systemd/network/08-wlan0.network /etc/systemd/network/16-br0_up.network
  3.      
  4. rpi ~# cat > /etc/systemd/network/02-br0.netdev <<EOF
  5. [NetDev]
  6. Name=br0
  7. Kind=bridge
  8. EOF
  9.  
  10. rpi ~# cat > /etc/systemd/network/04-br0_add-eth0.network <<EOF
  11. [Match]
  12. Name=eth0
  13. [Network]
  14. Bridge=br0
  15. EOF
  16.      
  17. rpi ~# systemctl edit wpa_supplicant@wlan0.service
  18.      
  19. [Service]
  20. ExecStartPre=/sbin/iw dev %i set type __ap
  21. ExecStartPre=/bin/ip link set %i master br0
  22.  
  23. ExecStart=
  24. ExecStart=/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -Dnl80211,wext -i%I -bbr0
  25.  
  26. ExecStopPost=-/bin/ip link set %i nomaster
  27. ExecStopPost=-/sbin/iw dev %i set type managed
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top