A new user interface for you! Read more...

File config.sh of Package W431_appliance

#!/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 default runlevel
#--------------------------------------
baseSetRunlevel 5

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


sed --in-place -e 's/# solver.onlyRequires.*/solver.onlyRequires = true/' /etc/zypp/zypp.conf

#======================================
# Sysconfig Update
#--------------------------------------
echo '** Update sysconfig entries...'
baseUpdateSysConfig /etc/sysconfig/keyboard KEYTABLE us.map.gz
baseUpdateSysConfig /etc/sysconfig/network/config FIREWALL no
baseUpdateSysConfig /etc/init.d/suse_studio_firstboot 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_AUTOLOGIN student
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 /
mkdir -p /
echo tar xfp /image/544cd583f8b2b939074872f994a7f65a -C /
tar xfp /image/544cd583f8b2b939074872f994a7f65a -C /
echo rm /image/544cd583f8b2b939074872f994a7f65a
rm /image/544cd583f8b2b939074872f994a7f65a
mkdir -p /
mv /studio/overlay-tmp/files///home-overlay-64bit.tar.gz //home-overlay-64bit.tar.gz
chown root:root //home-overlay-64bit.tar.gz
chmod 755 //home-overlay-64bit.tar.gz
echo mkdir -p /
mkdir -p /
echo tar xfp /image/df6c81f31abe437b80f8b5f653f37a44 -C /
tar xfp /image/df6c81f31abe437b80f8b5f653f37a44 -C /
echo rm /image/df6c81f31abe437b80f8b5f653f37a44
rm /image/df6c81f31abe437b80f8b5f653f37a44
mkdir -p /
mv /studio/overlay-tmp/files///matlab.tar.gz //matlab.tar.gz
chown root:root //matlab.tar.gz
chmod 755 //matlab.tar.gz
echo mkdir -p /
mkdir -p /
echo tar xfp /image/fe4568b746b7ff532acdeea2f328dc64 -C /
tar xfp /image/fe4568b746b7ff532acdeea2f328dc64 -C /
echo rm /image/fe4568b746b7ff532acdeea2f328dc64
rm /image/fe4568b746b7ff532acdeea2f328dc64
mkdir -p /
mv /studio/overlay-tmp/files///usr-overlay.tar.gz //usr-overlay.tar.gz
chown root:root //usr-overlay.tar.gz
chmod 755 //usr-overlay.tar.gz
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
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