Skip to content

Commit

Permalink
Merge pull request #1177 from rern/UPDATE
Browse files Browse the repository at this point in the history
u
  • Loading branch information
rern authored Jan 2, 2023
2 parents 79d41d4 + 8e46e62 commit 026f027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srv/http/bash/settings/networks-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ listWlan() {
readarray -t profiles <<< $( ls -1p /etc/netctl | grep -v /$ )
if [[ $profiles ]]; then
for profile in "${profiles[@]}"; do
! grep -q Interface=$wldev "/etc/netctl/$profile" && continue
! grep -q 'Interface="*'$wldev "/etc/netctl/$profile" && continue
if netctl is-active "$profile" &> /dev/null; then
for i in {1..10}; do
ipwl=$( ifconfig $wldev | awk '/inet.*broadcast/ {print $2}' )
Expand Down
2 changes: 1 addition & 1 deletion srv/http/bash/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [[ -e /boot/wifi && $wlandev ]]; then
key=$( sed -E -n '/^Key/ {s/^.*="*|"$//g; p}' <<< $wifi )
filebootwifi="/etc/netctl/$ssid"
cat << EOF > "$filebootwifi"
Interface="$wlandev"
Interface=$wlandev
$( grep -E -v '^#|^\s*$|^Interface|^ESSID|^Key' <<< $wifi )
ESSID="$( sed 's/"/\\"/g' <<< $ssid )"
Key="$( sed 's/"/\\"/g' <<< $key )"
Expand Down

0 comments on commit 026f027

Please sign in to comment.