Skip to content
Zsolt Ero edited this page May 1, 2014 · 18 revisions

###Dev environment

  1. Make sure you install and start Kano DevBox
  2. Install kano-updater using the icon on the desktop desktop
  3. Now you will be able to run and develop kano-updater on Kano DevBox!
  4. Open a terminal and type sudo kano-updater

###Project details expand-rootfs > Part of raspi-config (Alex Bradbury). Expands the partition.
kano-updater > Main Python program where the actual update takes effect.
post_update > Script executed after the update has happened
pre_update > Script executed before the update takes place
python_modules > List of 3rd party modules installed in the system

kano_updater/
.../osversion.py > Controls the OS Version.
.../update.py > File used by pre and post update files. Helper to check version before and after the update.
.../utils.py > Utility library used by pre and post update files.

The tool supports graphical and console based modes. In order to do, we check the mode using kanux.utils.is_gui()

  • Command line: text driven, requires user to type input.
  • Graphical mode: We use Zenity to ask for user input and display information.
Clone this wiki locally