mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
remove Windows/Mac newlines from wpa_supplicant.conf
This commit is contained in:
parent
9d02ade3b1
commit
8556a04e97
@ -32,6 +32,9 @@ fi
|
||||
|
||||
test -f $conf || exit 0
|
||||
|
||||
# we want only Unix newlines here
|
||||
sed -i 's/\r//g' $conf
|
||||
|
||||
ssid=$(cat $conf | grep ssid | grep -v scan_ssid | cut -d '"' -f 2)
|
||||
test -n "$ssid" || exit 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user