[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wpa-supplicant service configuration. Guile is hard
From: |
Ricardo Wurmus |
Subject: |
Re: wpa-supplicant service configuration. Guile is hard |
Date: |
Fri, 05 Apr 2019 18:38:22 +0200 |
User-agent: |
mu4e 1.0; emacs 26.1 |
address@hidden writes:
> Hello! I have several questions about wpa-supplicant + dhcpcd services.
>
> First of all I do not want to use networkmanager and I usually get Internet
> working manually with this:
> # cat startnet
> #!/bin/sh
> #connect to wi-fi through wpa_supplicant
> herd stop wpa-supplicant
> rfkill unblock wifi
> wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
> sleep 2
> dhclient -v wlp2s0
Why do you do this all manually instead of using
wpa-supplicant-service-type and dhcp-client-service-type?
Your configuration looks … adventurous. Here are some recommendations:
* don’t nest modify-services. Nothing good will come of this. It only
serves to confuse you. “modify-services” can modify more than one
service at once.
* don’t leave parentheses on lines all by themselves. They get lonely.
* don’t use dhcpd-service-type unless you want to run a DHCP server.
Use dhcp-client-service-type for the DHCP *client*.
* you don’t need to add wpa-supplicant to the list of globally installed
packages. The service is enough.
* maybe try fixing the indentation (Emacs can do this with M-q) — it’s
very hard to understand the configuration when the indentation tries
hard to mislead you.
--
Ricardo