#!/bin/sh

################################################################################
#
# Copyright (C) 2016 Cumulus Networks Inc. All rights reserved
#
################################################################################

# post-install script for onie-tools

# bail out on any errors
set -e

command="$1"
old_version="$2"

# Skip configuration if installed at image build time.  We do not have
# the ONIE partition available here.
if [ "$UPDATE_CUMULUS" != "No" ] ; then
    # Only perform actions for "configure"
    if [ "$command" = "configure" ] ; then
        # Update the grub.cfg as we have installed files in /etc/grub.d
        update-grub
    fi
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#
