From: Ian Kelling Date: Mon, 11 Dec 2023 11:47:05 +0000 (-0500) Subject: fixes X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=0b452f8ac2191cec4b0ec05537320ddddb213d4f;p=distro-setup fixes --- diff --git a/brc2 b/brc2 index 195f3dd..3f62206 100644 --- a/brc2 +++ b/brc2 @@ -366,6 +366,17 @@ anki() { schroot -c buster -- anki } +daycat() { + ngset + hrcat /m/md/daylert/{cur,new}/* + ngreset +} +dayclear() { + ngset + rm -f /m/md/daylert/{cur,new}/* +} + + acat() { ngset hrcat /m/md/alerts/{cur,new}/* diff --git a/system-status b/system-status index 6b25454..7f3edf2 100755 --- a/system-status +++ b/system-status @@ -454,7 +454,11 @@ main-loop() { if $power; then if (( loop_count % 10 == 0 )); then - bat=$(cat /sys/class/power_supply/BAT0/capacity) + if [[ -r /sys/class/power_supply/BAT0/capacity ]]; then + bat=$(cat /sys/class/power_supply/BAT0/capacity) + else + bat=100 + fi case $bat in 100|9?) bitcoinon &