mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
machine/serverle: fix wifi output
This commit is contained in:
parent
0076efccd0
commit
1a6296e854
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue