# parse command line arguments
  for arg in $(cat /proc/cmdline); do
    case $arg in
      textmode)
        TEXTMODE=yes
        ;;
      installer)
        INSTALLER=yes
        ;;
      debugging)
        DEBUG=yes
        ;;
      fastboot)
        FASTBOOT=yes
        ;;
    esac
  done

# setting some Variables
  [ "$FASTBOOT" = "yes" ] && \
    IONICE="ionice -c 1 -n 0" && \
    NICE_20="nice -n 20"

# functions
  progress() {
    if test "$DEBUG" = yes; then
      logger -s -t Boot "### $1 ###"
    else
      logger -t Boot "### $1 ###"
    fi
  }

# read config files
  for config in `ls /etc/profile.d/`; do
    . /etc/profile.d/$config
  done
