#!/bin/sh

set -e

KERNEL=/boot/kernel-power-46-uboot.fiasco

FLASHER=/sbin/fiasco-image-update

# they say this is The Right Way (tm) to check for
# scratchbox environment
if [ -L /targets/links/scratchbox.config ]; then
	# hehe
	true
else
	if [ -f $KERNEL -a -x $FLASHER ]; then
		$FLASHER $KERNEL
	fi
fi

update-sudoers

#DEBHELPER#

