I'm running a python script to configure the wifi interface, but I'm having a problem with the ifdown
and ifup
command. It looks like this command has been replaced by:
sudo ip link set wlan0 down
sudo ip link set wlan0 up
But I can not use this command since I'm using wifi library to interact with these files and programs.
The file /etc/network/interfaces
:
source-directory /etc/network/interfaces.d
iface wlan0-kenta inet dhcp
wpa-ssid kenta
wireless-channel auto
wpa-psk #here has code apparently in hexadecimal representing the password,
#I have already tried to switch to the character password.
How can I fix this problem?