#!/bin/bash
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."



## <*****BASIC CONFIGURATION*****>

#======================================
## Select the default runlevel of the final image.
## select 3 for commandline + networking
## select 5 for complete GUI + networking.
#--------------------------------------
#baseSetRunlevel 5  -- Doesn't seem to be implemented in kiwi.

#======================================
## If any files are dumped into home directories of any users, using archives, the following command will set the apprpriate permissions on those files.
#--------------------------------------
baseSetupUserPermissions

#======================================
# Activate services
#--------------------------------------
## Enabling iptables service by default.
 
## <*****END OF BASIC CONFIGURATION*****>




## <****HACKS && FIXES *****>
##### Hacks to get the build running 
ln -s /sbin/mksquashfs /usr/bin/mksquashfs
#####



## <***** END OF HACKS && FIXES *****>

#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount

exit 0
