User:Ixo/Script/xo-update

From OLPC
< User:Ixo‎ | Script
Revision as of 01:26, 10 February 2008 by Ixo (talk | contribs) (started new page for ixo-update script.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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-update: Do an olpc-update to specific build (joyride or Update), log results.

Description

  • Log various system information during an olpc-update for later examination

Benefits

  • Creates permanent record and timing of update, for later viewing.

First script:


#!/bin/bash
## FILE: ixo-update ######
# 2008 01 10, Iain D, ixo AT myna DOT ws
## RELEASED under CC-BY-SA-NC 3.0 license.
ver="update.1-691"
cd ~olpc
echo "------- $ver -------------------------------------"
date
# Below is various system information nice to log before the update 
# (aka xo-info)
grep -v "garbage-to-ignore" /etc/issue /boot/olpc_build
ls -Ld /versions/* /versions/contents/* /versions/pristine/*  /versions/configs/*
ls -ld /versions/running /versions/boot
#
/usr/sbin/olpc-update $ver
#
date
echo "------- ______________________ $ver"


Second script:

#!/bin/bash
## FILE: ixo-update-log #######
# 2008 01 12, Iain D, ixo AT myna DOT ws
## RELEASED under CC-BY-SA-NC 3.0 license.
/home/olpc/bin/ixo-log-update >>log-update.out 2>>log-update.out


NOTES:

  • Assumed that scripts are in /home/olpc/bin , both have 'x' execute bit set.
  • Currently need to set manually the version number update.1-691 to update, future feature is passing it along, or picking from list (or latest).