Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with systemd & wifi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 772
Location: over here

PostPosted: Thu Oct 10, 2013 1:21 pm    Post subject: Help with systemd & wifi Reply with quote

This isn't really important I'm just messing with it. It boots, it loads my wpa_supplicant@wlp1s0.service amd it's running however:

Code:
ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 4  bytes 264 (264.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 264 (264.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::224:2cff:fe07:95f6  prefixlen 64  scopeid 0x20<link>
        ether 00:24:2c:07:95:f6  txqueuelen 1000  (Ethernet)
        RX packets 2  bytes 306 (306.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 860 (860.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


my network-wireless@.service:
Code:

Unit]
Description=Wireless Network Connectivity (%i)
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network-wireless@%i

ExecStart=/usr/bin/ip link set dev %i up
ExecStart=/usr/bin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.conf
ExecStart=/usr/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
ExecStart=/usr/bin/ip route add default via ${gateway}

ExecStop=/usr/bin/ip addr flush dev %i
ExecStop=/usr/bin/ip link set dev %i down

[Install]
WantedBy=multi-user.target




ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1


and my wpa_supplicant.conf (with the essid and psk edited out):
Code:
network={
        ssid=""
        psk=""
        proto=WPA2
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        priority=5
}


I really have no idea what to do or what I've done wrong. Hope someone can help + explain, I'd like to get my head around this.
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Sun Oct 13, 2013 6:43 pm    Post subject: Reply with quote

It'll be like the blind leading the blind here but here goes... :roll: :lol:

I'm not familiar with wpa_supplicant (except knowing what it does) - since I use KDE+NetworkManager.

I would add a -dd after your wpa_supplicant launch line...
Code:
ExecStart=/usr/bin/wpa_supplicant -dd -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.conf


Does journalctl spit out anything useful in the logs??
Code:
journalctl --unit network-wireless@<instance>.service

Where <instance> is (I presume) replaced with your network adapter name...

Bob
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum