#!/bin/bash
#
#
# Copyright (c) [2013] Novell, Inc.  All Rights Reserved.
#
# THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.  IT
# MAY NOT BE USED, COPIED, DISTRIBUTED, DISCLOSED, ADAPTED, PERFORMED, DISPLAYED,
# COLLECTED, COMPILED, OR LINKED WITHOUT NOVELL'S PRIOR WRITTEN CONSENT.  USE OR
# EXPLOITATION OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR
# TO CRIMINAL AND CIVIL LIABILITY.
#
# NOVELL PROVIDES THE WORK "AS IS," WITHOUT ANY EXPRESS OR IMPLIED WARRANTY,
# INCLUDING WITHOUT THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
# PARTICULAR PURPOSE, AND NON-INFRINGEMENT. NOVELL, THE AUTHORS OF THE WORK, AND
# THE OWNERS OF COPYRIGHT IN THE WORK ARE NOT LIABLE FOR ANY CLAIM, DAMAGES, OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING
# FROM, OUT OF, OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN
# THE WORK.
#
#
# This script is executed whenever your appliance boots.  Here you can add
# commands to be executed before the system enters the first runlevel.  This
# could include loading kernel modules, starting daemons that aren't managed
# by init files, asking questions at the console, etc.
#
# The 'kiwi_type' variable will contain the format of the appliance (oem =
# disk image, vmx = VMware, iso = CD/DVD, xen = Xen).
#

# read in some variables
### BEGIN INIT INFO
# Provides:          suse_studio_custom_monitor-appliance
# Should-Start:
# Required-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:
# Default-Stop:      0 1 2 6
# Short-Description: Firstboot script  
# Description:       Script to run during firstboot of appliance 
### END INIT INFO
. /studio/profile

#FYI - This doesn't appear to get executed - use va_firstboot_hacloud-appliance instead
# See /root/suse-studio-firstboot.service that doesn't get installed/enabled
# See lack of: /etc/init.d/suse_studio_firstboot
# See: /studio/suse-studio-custom


if [ -f /etc/init.d/suse_studio_firstboot ]
then
# Put commands to be run on the first boot of your appliance here
  echo "Running SUSE Studio first boot script..."

fi

