diff --git a/libs/func_network.sh b/libs/func_network.sh index d8a2101..fc05e8c 100644 --- a/libs/func_network.sh +++ b/libs/func_network.sh @@ -24,7 +24,7 @@ _patch_network_scripts() # Check if wpa_supplicant is required and patch its install script if yes if [[ $2 == *"wpa_supplicant"* ]] ; then sed -i "/^cat > \/etc\/systemd\/network/i cat > /etc/systemd/network/20-wlan0.network << \"EOF\"\n\[Match\]\nName=wlan0\n\n\[Network\]\nDHCP=yes\nEOF" "$net_script" && - sed -i "/20-wlan0.network/i mkdir -pv /etc/wpa_supplicant\ncat > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf << \"EOF\"\nnetwork=\{\nssid=\"T-E797F1\"\n#psk=\"Q2729eq9338qQJ7s\"\npsk=a41c0853c906d7db271a007af55afa9dce2efa8efa994d614b2d7b1d0b38bc72\n\}\nEOF" "$net_script" && + sed -i "/20-wlan0.network/i mkdir -pv /etc/wpa_supplicant\ncat > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf << \"EOF\"\nnetwork=\{\nssid=\"Telekom-737166_5Ghz\"\n#psk=\"teuf95a2e2fb\"\npsk=c8bac18b5379c7c80f01daad882e978c7a803b5404a69705b977552640608863\n\}\nEOF" "$net_script" && sed -i "/wpa_supplicant@/s/@.*/@wlan0/" "$(find "$1/blfs_root/scripts/" -type f -iname "*-wpa_supplicant")" if [[ $? -gt 0 ]] ; then echo "Failed to patch wpa_supplicant script." >&2