File config.sh of Package ERSB_V_2_2_1

#!/bin/bash
#================
# FILE          : config.sh
#----------------
# PROJECT       : OpenSuSE KIWI Image System
# COPYRIGHT     : (c) 2006 SUSE LINUX Products GmbH. All rights reserved
#               :
# AUTHOR        : Marcus Schaefer <ms@suse.de>
#               :
# BELONGS TO    : Operating System images
#               :
# DESCRIPTION   : configuration script for SUSE based
#               : operating systems
#               :
#               :
# STATUS        : BETA
#----------------
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

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

#======================================
# SuSEconfig
#--------------------------------------
echo "** Running suseConfig..."
suseConfig

echo "** Running ldconfig..."
/sbin/ldconfig

#======================================
# Setup baseproduct link
#--------------------------------------
suseSetupProduct


#======================================
# Setup default runlevel
#--------------------------------------
baseSetRunlevel 5

#======================================
# Add missing gpg keys to rpm
#--------------------------------------
suseImportBuildKey


#======================================
# Firewall Configuration
#--------------------------------------
echo '** Configuring firewall...'
chkconfig SuSEfirewall2_init on
chkconfig SuSEfirewall2_setup on

#======================================
# Sysconfig Update
#--------------------------------------
echo '** Update sysconfig entries...'
baseUpdateSysConfig /etc/sysconfig/keyboard KEYTABLE fr-latin1.map.gz
baseUpdateSysConfig /etc/sysconfig/network/config FIREWALL yes
baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER no
baseUpdateSysConfig /etc/sysconfig/SuSEfirewall2 FW_SERVICES_EXT_TCP 22
baseUpdateSysConfig /etc/sysconfig/console CONSOLE_FONT lat9w-16.psfu
baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER gdm
baseUpdateSysConfig /etc/sysconfig/windowmanager DEFAULT_WM gnome


#======================================
# Setting up overlay files 
#--------------------------------------
echo '** Setting up overlay files...'
echo mkdir -p /opt/
mkdir -p /opt/
echo tar xfp /image/65b6d55df757fc2af5a948d69293750e -C /opt/
tar xfp /image/65b6d55df757fc2af5a948d69293750e -C /opt/
echo rm /image/65b6d55df757fc2af5a948d69293750e
rm /image/65b6d55df757fc2af5a948d69293750e
mkdir -p /opt/
mv /studio/overlay-tmp/files//opt//Galitt.tar.gz /opt//Galitt.tar.gz
chown nobody:nobody /opt//Galitt.tar.gz
chmod 644 /opt//Galitt.tar.gz
echo mkdir -p /opt/
mkdir -p /opt/
echo tar xfp /image/0d529d2899a4bf294dbe051215103c80 -C /opt/
tar xfp /image/0d529d2899a4bf294dbe051215103c80 -C /opt/
echo rm /image/0d529d2899a4bf294dbe051215103c80
rm /image/0d529d2899a4bf294dbe051215103c80
mkdir -p /opt/
mv /studio/overlay-tmp/files//opt//IBM.tar.gz /opt//IBM.tar.gz
chown nobody:nobody /opt//IBM.tar.gz
chmod 644 /opt//IBM.tar.gz
echo mkdir -p /usr/lib/
mkdir -p /usr/lib/
echo tar xfp /image/c032759936dc4b76084ad749e4849afd -C /usr/lib/
tar xfp /image/c032759936dc4b76084ad749e4849afd -C /usr/lib/
echo rm /image/c032759936dc4b76084ad749e4849afd
rm /image/c032759936dc4b76084ad749e4849afd
mkdir -p /usr/lib/
mv /studio/overlay-tmp/files//usr/lib//libcca.tar.gz /usr/lib//libcca.tar.gz
chown nobody:nobody /usr/lib//libcca.tar.gz
chmod 644 /usr/lib//libcca.tar.gz
mkdir -p /usr/bin/
mv /studio/overlay-tmp/files//usr/bin//ad65-spmk /usr/bin//ad65-spmk
chown root:root /usr/bin//ad65-spmk
chmod 755 /usr/bin//ad65-spmk
mkdir -p /home/admsec/Desktop/
mv /studio/overlay-tmp/files//home/admsec/Desktop//ad65-spmk.desktop /home/admsec/Desktop//ad65-spmk.desktop
chown admsec:users /home/admsec/Desktop//ad65-spmk.desktop
chmod 755 /home/admsec/Desktop//ad65-spmk.desktop
mkdir -p /usr/bin/
mv /studio/overlay-tmp/files//usr/bin//cb65-impk /usr/bin//cb65-impk
chown root:root /usr/bin//cb65-impk
chmod 755 /usr/bin//cb65-impk
mkdir -p /etc/profile.d/
mv /studio/overlay-tmp/files//etc/profile.d//ibm4765.sh /etc/profile.d//ibm4765.sh
chown root:nobody /etc/profile.d//ibm4765.sh
chmod 644 /etc/profile.d//ibm4765.sh
mkdir -p /opt/Galitt/share/
mv /studio/overlay-tmp/files//opt/Galitt/share//logo.png /opt/Galitt/share//logo.png
chown nobody:nobody /opt/Galitt/share//logo.png
chmod 644 /opt/Galitt/share//logo.png
mkdir -p /sbin/
mv /studio/overlay-tmp/files//sbin//ycrypto_mknod /sbin//ycrypto_mknod
chown root:users /sbin//ycrypto_mknod
chmod 744 /sbin//ycrypto_mknod
test -d /studio || mkdir /studio
cp /image/.profile /studio/profile
cp /image/config.xml /studio/config.xml
chown root:root /studio/build-custom
chmod 755 /studio/build-custom
# run custom build_script after build
if ! /studio/build-custom; then
    cat <<EOF

*********************************
/studio/build-custom failed!
*********************************

EOF

    exit 1
fi
chown root:root /studio/suse-studio-custom
chmod 755 /studio/suse-studio-custom
rm -rf /studio/overlay-tmp
true

#======================================
# SSL Certificates Configuration
#--------------------------------------
echo '** Rehashing SSL Certificates...'
c_rehash


sh /studio/configure_gdm_theme.sh



sh /studio/configure_gnome_background.sh