mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 05:52:22 +08:00
wpa supplicant config updated
This commit is contained in:
parent
1aeb6ee422
commit
2ef091842d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user