#set/append default system path (bin/lib are created by default by ash)
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin

#execute init scripts, that are added later, e.g. Perl PATH-init scripts
for script in /etc/profile.d/*.sh ; do
 if [ -r $script ] ; then
  . $script
 fi
done

#don't blank screen in commandline (e.g. in case of long kernel compilation)
setterm -blank 0

#enable swap (useful for e.g. Raspberry PI with only 256MB RAM)
#swapon /dev/mmcblk0p3

#amixer set Master 100 unmute

#start X-Window graphics (comment out startx not to start X at startup)
Xpid=$( pidof Xorg )
if [ ${#Xpid} -gt 0 ] ; then
 echo "(X has already been started...)"
else
 if [ -f /usr/bin/startx ] ; then
  /usr/bin/startx  #startx can be initiated by hand as well if needed
 fi
fi