#!/bin/bash
#yast lan 
#yast x11

#ifconfig eth0 192.168.0.4
#route add default gw 192.168.0.1
dhcpcd -k eth0
dhcpcd eth0
echo 'shm 	/dev/shm	tmpfs	size=52488000,nodev,nosuid,noexec   0 0' >> /etc/fstab

tar -zpPxvf $1 
sync
tar -zpPxvf /pos/cfg/gtmpos.tgz
tar -zpPxvf /pos/cfg/tomcatcnf.tgz
tar -zpPxvf /pos/cfg/elotch.tgz
tar -zpPxvf /pos/cfg/systar.tgz 
tar -zpPxvf /pos/cfg/elpos.tgz
tar -zpPxvf /pos/cfg/tz.tgz
## for msm shared lim mjsp
ldconfig
##disable ipv6 
echo "alias net-pf-10 off"  >> /etc/modprobe.conf.local
echo "alias ipv6 off"  >> /etc/modprobe.conf.local
###
rpm -Uvh /pos/cfg/rpm/libopenssl0_9_8-0.9.8j-0.50.1.x86_64.rpm
rpm -ivh /pos/cfg/rpm/cabextract*
rpm -ivh /pos/cfg/rpm/fetchmsttfonts*
sh /var/adm/update-scripts/fetchmsttfonts-11.0-2.3-1

chkconfig -s SuSEfirewall2_setup off
chkconfig -s SuSEfirewall2_init off
chkconfig -s alsasound off
chkconfig -s auditd off
chkconfig -s bluez-coldplug off
chkconfig -s cups off
chkconfig -s network-remotefs off
chkconfig -s nfs off
chkconfig -s  postfix off
chkconfig -s smbfs off


chkconfig -s tomcat6 on 
chkconfig -s msmserver on 

if  /usr/sbin/lsusb|grep "eGalax TouchScreen" > /dev/null ;then
	rpm -ivh /pos/cfg/wintec-i3/kernel-2.6.32.120.7EETI-1.x86_64.rpm
	tar -zpPxvf /pos/cfg/wintec.tgz 
	/usr/sbin/grub-install
        tar -zpPxvf /pos/cfg/wintec-i3/touchkit.tgz 
fi
