Preconfigure Abjects IRC, refresh status bar charge icon and clock, update live device

- Ship ~/.config/sxmo/irc_servers.tsv (home and /etc/skel) with Abjects
  (irc.abjects.net, TLS port 6697) auto-joining #bananarchy, and change the
  compiled irc.so defaults to the same network; rebuild and mirror irc.so.
- Republish the charge icon together with a fresh clock on battery events,
  force the icon on state_change and forced battery refreshes, and add a
  lightweight refresh action called after an NTP clock step.
- Update the connected phone: sync network time, apk update plus
  apk upgrade -a, deploy the overlay and restart xirc; verify the status bar
  clock and charge icon; rebuild the a1108 / dejavu image.
- Guard the new IRC and status bar paths in check-rebuild.sh and sync
  README, MANUAL, AGENTS and the a1108 changelog.
This commit is contained in:
Luxferre committed 2026-11-08 10:36:45 +02:00
1 parent 8448b6465f
commit fb091749f0
13 files changed
+139 -11

No files matched your search

+51
View File
@@ -296,6 +296,57 @@ if ! grep -q 'compaction_proactiveness' \
fail "10-power-save.start no longer disables proactive compaction"
fi
echo "[check] Abjects IRC default network..."
IRC_SRC="$BASE_DIR/src/dwm-plugins/irc_plugin.cpp"
IRC_TSV="$BASE_DIR/overlay/rootfs/home/user/.config/sxmo/irc_servers.tsv"
IRC_SKEL="$BASE_DIR/overlay/rootfs/etc/skel/.config/sxmo/irc_servers.tsv"
for f in "$IRC_SRC" "$IRC_TSV" "$IRC_SKEL"; do
if [ ! -f "$f" ]; then
fail "missing ${f#$BASE_DIR/}"
fi
done
if ! grep -q 'irc.abjects.net' "$IRC_SRC" || \
! grep -q 'Abjects' "$IRC_SRC" || \
! grep -q '#bananarchy' "$IRC_SRC"; then
fail "irc_plugin.cpp no longer defaults to Abjects / #bananarchy"
fi
for f in "$IRC_TSV" "$IRC_SKEL"; do
if ! awk -F '\t' '
$1 == "Abjects" && $2 == "irc.abjects.net" && $3 == "6697" &&
$4 == "1" && $10 == "#bananarchy" { found = 1 }
END { exit !found }' "$f"; then
fail "${f#$BASE_DIR/} is not preconfigured for Abjects over TLS 6697"
fi
done
if ! grep -q 'Abjects' "$BASE_DIR/MANUAL.md" || \
! grep -q 'Abjects' "$BASE_DIR/README.md"; then
fail "IRC documentation is not synchronized with the Abjects default"
fi
echo "[check] Status bar charge icon and clock refresh..."
BATTERY_HOOK="$BASE_DIR/overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_battery.sh"
TIME_SYNC="$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-time-sync.sh"
BATTERY_CASE="$(sed -n '/^ battery)/,/^ ;;/p' "$STATUS_HOOK")"
if ! printf '%s\n' "$BATTERY_CASE" | grep -q 'set_time' || \
! printf '%s\n' "$BATTERY_CASE" | grep -q 'force_bar=1'; then
fail "battery events no longer republish the charge icon and clock"
fi
if ! grep -q '^ refresh)' "$STATUS_HOOK" || \
! grep -q 'refresh_statusbar' "$TIME_SYNC"; then
fail "post-sync status bar refresh is missing"
fi
if ! grep -q 'sxmo_hook_statusbar.sh battery' "$BATTERY_HOOK"; then
fail "battery hook no longer writes the charge icon"
fi
if ! grep -q 'rm -f "$ICON_FILE"' "$BATTERY_HOOK"; then
fail "forced battery refresh no longer republishes an unchanged charge icon"
fi
for f in "$BATTERY_HOOK" "$TIME_SYNC" "$STATUS_HOOK"; do
if ! sh -n "$f" 2>/dev/null; then
fail "shell syntax: ${f#$BASE_DIR/}"
fi
done
echo "[check] Docker availability..."
if ! command -v docker >/dev/null 2>&1; then
fail "docker is not installed"