I configured wpa_supplicant so I have a wifi connection after boot up. Now I want to stop it for while and start it again. I tried:
rpi ~$ sudo ifdown wlan0 ifdown: unknown interface wlan0
rpi ~$ ip addr show dev wlan0 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether b8:27:eb:06:e8:8b brd ff:ff:ff:ff:ff:ff inet 192.168.10.112/24 brd 192.168.10.255 scope global wlan0
Trying to use systemd also fails.
wpa_supplicant.service is already disabled:
rpi ~$ systemctl status wpa_supplicant.service ● wpa_supplicant.service - WPA supplicant Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; disabled; vendor preset: enabled) Active: inactive (dead)
I have looked at
/lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant but cannot figure out how to use it.