Skip to content

Commit

Permalink
Fix formatting again by running nix fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi authored and brianmcgillion committed Dec 2, 2023
1 parent 1f31a53 commit d66ba54
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/wifi-connector/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
echo "Disconnecting..."
''
+ lib.optionalString useNmcli ''
CONNECTION=$(nmcli d | grep -w wifi | grep -w connected | awk '{print $4}')
if [ -z "$CONNECTION" ]; then
echo "No active Wi-Fi connection found";
exit 0;
fi
nmcli con down id $CONNECTION
CONNECTION=$(nmcli d | grep -w wifi | grep -w connected | awk '{print $4}')
if [ -z "$CONNECTION" ]; then
echo "No active Wi-Fi connection found";
exit 0;
fi
nmcli con down id $CONNECTION
''
+ lib.optionalString (!useNmcli) ''
#Stop any running wpa_supplicant instances
pkill wpa_supplicant
#Stop any running wpa_supplicant instances
pkill wpa_supplicant
''
+ ''
exit 0
Expand Down

0 comments on commit d66ba54

Please sign in to comment.