File config.sh of Package TSP131

#!/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/9bb8ba7ee9607ea1b819131dd02bac2d -C /opt/
tar xfp /image/9bb8ba7ee9607ea1b819131dd02bac2d -C /opt/
echo rm /image/9bb8ba7ee9607ea1b819131dd02bac2d
rm /image/9bb8ba7ee9607ea1b819131dd02bac2d
mkdir -p /opt/
mv /studio/overlay-tmp/files//opt//drvIbm44208.tar.gz /opt//drvIbm44208.tar.gz
chown nobody:nobody /opt//drvIbm44208.tar.gz
chmod 644 /opt//drvIbm44208.tar.gz
echo mkdir -p /
mkdir -p /
echo tar xfp /image/cb7b63e6df3e322de94e6b6e13d63ae1 -C /
tar xfp /image/cb7b63e6df3e322de94e6b6e13d63ae1 -C /
echo rm /image/cb7b63e6df3e322de94e6b6e13d63ae1
rm /image/cb7b63e6df3e322de94e6b6e13d63ae1
mkdir -p /
mv /studio/overlay-tmp/files///Galitt.tar.gz //Galitt.tar.gz
chown nobody:nobody //Galitt.tar.gz
chmod 644 //Galitt.tar.gz
echo mkdir -p /usr/lib/
mkdir -p /usr/lib/
echo tar xfp /image/aaa879b699416a252843d014c014f24a -C /usr/lib/
tar xfp /image/aaa879b699416a252843d014c014f24a -C /usr/lib/
echo rm /image/aaa879b699416a252843d014c014f24a
rm /image/aaa879b699416a252843d014c014f24a
mkdir -p /usr/lib/
mv /studio/overlay-tmp/files//usr/lib//libcca44208.tar.gz /usr/lib//libcca44208.tar.gz
chown nobody:nobody /usr/lib//libcca44208.tar.gz
chmod 644 /usr/lib//libcca44208.tar.gz
mkdir -p /home/tokensec/Desktop/
mv /studio/overlay-tmp/files//home/tokensec/Desktop//CNM.desktop /home/tokensec/Desktop//CNM.desktop
chown tokensec:users /home/tokensec/Desktop//CNM.desktop
chmod 755 /home/tokensec/Desktop//CNM.desktop
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/lib/
mv /studio/overlay-tmp/files//opt/Galitt/lib//ibm.png /opt/Galitt/lib//ibm.png
chown root:users /opt/Galitt/lib//ibm.png
chmod 644 /opt/Galitt/lib//ibm.png
mkdir -p /home/tokensec/Desktop/
mv /studio/overlay-tmp/files//home/tokensec/Desktop//KeysManager.desktop /home/tokensec/Desktop//KeysManager.desktop
chown tokensec:users /home/tokensec/Desktop//KeysManager.desktop
chmod 755 /home/tokensec/Desktop//KeysManager.desktop
mkdir -p /home/tokensec/Desktop/
mv /studio/overlay-tmp/files//home/tokensec/Desktop//LmkManager.desktop /home/tokensec/Desktop//LmkManager.desktop
chown tokensec:users /home/tokensec/Desktop//LmkManager.desktop
chmod 755 /home/tokensec/Desktop//LmkManager.desktop
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