#!/bin/sh

## live-config(7) - System Configuration Scripts
## Copyright (C) 2006-2013 Daniel Baumann <daniel@debian.org>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.


Update ()
{

        livelnk=`/sbin/losetup /dev/loop0 | /bin/sed -ne 's!^.*\(/lib/live/.*\)/filesystem.squashfs.*$!\1!p'`

	if [ -e $livelnk/loupiottes-update.txz ]
	then
		tar xJf $livelnk/loupiottes-update.txz -C /
	fi

	[ -e /usr/local/sbin/update.sh ] && /usr/local/sbin/update.sh

	return
}

Update
