mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
easier diff
This commit is contained in:
parent
3c3affb16a
commit
b286d9d6e9
1 changed files with 1 additions and 1 deletions
|
@ -27,9 +27,9 @@ fi
|
||||||
# https://bugs.launchpad.net/netplan/+bug/1951586
|
# https://bugs.launchpad.net/netplan/+bug/1951586
|
||||||
# WiFi country code progress on arm64 OS's discussed on #3078
|
# WiFi country code progress on arm64 OS's discussed on #3078
|
||||||
if [ -f /run/netplan/wpa-$IFACE.conf ]; then
|
if [ -f /run/netplan/wpa-$IFACE.conf ]; then
|
||||||
|
NETPLAN=1
|
||||||
SSID=`grep ssid /run/netplan/wpa-$IFACE.conf | awk -F = '{print $2}' | sed -r s/\"// | sed -r s/\"//`
|
SSID=`grep ssid /run/netplan/wpa-$IFACE.conf | awk -F = '{print $2}' | sed -r s/\"// | sed -r s/\"//`
|
||||||
REG_DOM=$(grep country /run/netplan/wpa-$IFACE.conf | awk -F = '{ print $2 }')
|
REG_DOM=$(grep country /run/netplan/wpa-$IFACE.conf | awk -F = '{ print $2 }')
|
||||||
NETPLAN=1
|
|
||||||
if [ -z "$REG_DOM" ]; then
|
if [ -z "$REG_DOM" ]; then
|
||||||
echo "cover netplan wifi client lack of country="
|
echo "cover netplan wifi client lack of country="
|
||||||
sed -i "s|ctrl_interface=/run/wpa_supplicant|&\ncountry={{ host_country_code }}|" /run/netplan/wpa-$IFACE.conf
|
sed -i "s|ctrl_interface=/run/wpa_supplicant|&\ncountry={{ host_country_code }}|" /run/netplan/wpa-$IFACE.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue