machine/serverle: fix wifi output

This commit is contained in:
Felix Buehler 2023-05-16 22:42:34 +02:00
parent 0076efccd0
commit 1a6296e854

View file

@ -20,9 +20,10 @@
systemd.services."reconnect-wifi" = { systemd.services."reconnect-wifi" = {
script = '' script = ''
set -eu set +e # allow exit codes other then zero to check if online
set -u
${pkgs.iputils.out}/bin/ping -q -w 5 -c 2 192.168.178.1 2> /dev/null ${pkgs.networkmanager}/bin/nm-online -t 10
if [ $? != 0 ] if [ $? != 0 ]
then then