Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://kdebase-3.4.0-kdeorg_1cl.src.rpm:21382107/kdeinitrc  info  downloads

#!/bin/bash

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

if [ x"$XWINHOME" != x ]; then
    XINIT_DIR=$XWINHOME/lib/X11/xinit
else
    XINIT_DIR=/etc/X11/xinit
fi

# export OPENWINHOME and HELPPATH

export OPENWINHOME=/usr/openwin
export HELPPATH=$OPENWINHOME/help

sysresources=$XINIT_DIR/.Xresources
userdefaults=$HOME/.Xdefaults

# merge in defaults and keymaps
if [ -x /lib/cpp ]; then
    XRDB=xrdb
else
    XRDB="xrdb -nocpp"
fi

for res in ${sysresources}* $userresources $userdefaults ; do
    if [ -f $res ]; then
        $XRDB -merge $res
    fi
done

xsetroot -solid black

# check for space on /tmp and $HOME and for write access
#  error exit, if not 
space_tmp=`LANG= df /tmp | xargs | cut -d" " -f11`
space_home=`LANG= df $HOME | xargs | cut -d" " -f11`

if [ $space_tmp -lt 50 ]; then
    echo Not enough free disk space in /tmp
    exit 1
fi

if [ $space_home -lt 25 ]; then
    echo Not enough free disk space in $HOME
    exit 1
fi

testfile=$(mktemp /tmp/KDE-testfile-XXXXXX)
if [ ! -f "$testfile" ]; then
	echo "Error: Can't write in /tmp/"
	exit 1
fi
rm -f $testfile

testfile=$(mktemp $HOME/KDE-testfile-XXXXXX)
if [ ! -f "$testfile" ]; then
	echo "Error: Can't write in $HOME (home dir)"
	exit 1
fi
rm -f $testfile 

if [ -f /usr/share/lgtypes/needs_update -a -x /usr/sbin/rebuild_lgtypes ]; then
        /usr/sbin/rebuild_lgtypes
fi

# check numlock status and turn it on if needed
# (controled by the keyboard initscript, based on
# /etc/sysconfig/numlock settings)
if [ -f /var/run/numlock-on -a -x /usr/bin/enable_X11_numlock ]; then
    /usr/bin/enable_X11_numlock
fi

# KDE Directory
export KDEDIR=/usr/lib/kde3

#KDE Binaries Path
export PATH=$PATH:$KDEDIR/bin

exec $KDEDIR/bin/startkde 
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN