-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
is this really needed still ?
Lines 172 to 194 in b8accd1
| workaroundWifi = { | |
| # dude, bash and linux are just real pieces of shit sometimes | |
| # uptime is unparseable garbage | |
| # well, so is /proc/uptime too, fucking returning floats that I have to cut apart | |
| # seriously, I know some of this is old stuff but were they even thinking? | |
| # then again lots of unix types seem to love "cutting" everywhere instead of real, explicit safe CLI APIs | |
| # UGGGGGGGGGGGGGH | |
| # it'd be cool to see a nulib stdlib that alleviated some of this bullshit | |
| text = '' | |
| ( | |
| set -x | |
| uptime_ms="$(cat /proc/uptime | cut -d ' ' -f 1)" | |
| uptime_ms="$(echo $uptime_ms | cut -d '.' -f 1)" | |
| if [[ ''${uptime_ms} -gt ${ toString (60 * 2) } ]]; then | |
| echo "workaround_wifi_issue: trigger" | |
| ${pkgs.systemd}/bin/systemctl restart systemd-udev-trigger | |
| else | |
| echo "workaround_wifi_issue: skip" | |
| fi | |
| ) | |
| ''; | |
| deps = [ ]; | |
| }; |
Metadata
Metadata
Assignees
Labels
No labels