User:Ixo/Script/xo-sysinfo

From OLPC
< User:Ixo‎ | Script
Revision as of 03:26, 16 April 2008 by Ixo (talk | contribs) (cc-GNU GPL update)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Summary

  • ixo-info: Quickly display various useful troubleshooting build information about the XO Laptop


Description

  • Duickly display various useful troubleshooting information about the XO Laptop
  • Shows current os version: /etc/issue /boot/olpc_build
  • Shows available os versions /versions/pristine/*/boot/olpc_build
  • Show available os hash info
    • /versions/running /versions/boot
    • /versions/* /versions/contents/* /versions/pristine/* /versions/configs/*

Benefits

  • Show both versions (current and alt-boot) of OS installed on the system


#!/usr/bin/bash
#### FILE: xo-info ########
# 2008 01 12, Iain D, ixo AT myna DOT ws
## RELEASED under CC-GNU GPL 3.0 license.

grep -v "garbage-to-ignore" /etc/issue /boot/olpc_build /versions/pristine/*/boot/olpc_build
ls -Ld /versions/* /versions/contents/* /versions/pristine/*  /versions/configs/*
ls -ld /versions/running /versions/boot