Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/evidence/own-gpu-driver/rung2/window1-check.sh # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / evidence / own-gpu-driver / rung2 / window1-check.sh` 16 lines ยท 1260 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # L332 rung 2 window 1, part 3 (after the restore reboot): the box is back as before. Read-only. 3 set -u 4 export PATH=$PATH:/usr/sbin:/sbin # modinfo, lsmod and friends live in sbin; a normal user shell may not list it 5 here=$(cd "$(dirname "$0")" && pwd) 6 log=$here/$(readlink "$here/window1-current.log") 7 ts() { echo "$(date -u +%FT%T.%NZ) $*" | tee -a "$log"; } 8 ok=1 9 ts "check start; boot $(uptime -s)" 10 grep -q 'aien.gpuwindow=1' /proc/cmdline && { ts "still the window boot (aien.gpuwindow=1): the restore reboot did not happen; reboot"; ok=0; } 11 [ -e /run/modprobe.d/zz-aien-gpu-window.conf ] && { ts "hold-back file still in /run: unexpected outside the window boot"; ok=0; } 12 next=$(grub-editenv /boot/grub/grubenv list | sed -n 's/^next_entry=//p'); [ -z "$next" ] || { ts "grubenv next_entry still set ($next): clear it with 'sudo grub-editenv /boot/grub/grubenv unset next_entry'"; ok=0; } 13 n=$(lsmod | grep -cE '^nvidia'); ts "nvidia modules loaded: $n (want 4)"; [ "$n" = 4 ] || ok=0 14 lsmod | grep -q '^aien_gpu' && { ts "aien_gpu loaded after reboot: unexpected"; ok=0; } 15 nvidia-smi -L >> "$log" 2>&1 || { ts "nvidia-smi failed: GPU not back on NVIDIA's driver"; ok=0; } 16 ts "WINDOW1 RESTORE $([ $ok = 1 ] && echo PASS || echo FAIL)"