#!/bin/ash

#
# logo, displayed during booting
#
NETBOOT_LOGO='
    .-.       
    /v\       dass /smartclient
   // \\                netboot
  /(   )\     
   ^^-^^     '

# Debug (eg. wait for key press).  "on" |  "off"
# can also be set by the scNetbootOptions in LDAP
#Debug=on
Debug=off

# read base config file
test -r /etc/smartclient/base && source /etc/smartclient/base

# sc_hardware defines log level. Must be known in advance
test -r /usr/lib/smartclient/sc_hardware.sh && source /usr/lib/smartclient/sc_hardware.sh

# CPU architecture
ARCH=x86_64

# specify either 
# KernelRpm (in builddir/kernel) or
# KernelPath (absolute path. no "/" at the end. Compiled kernel sources)
# KernelRpm is prefered
# KernelRelease must match the kernel

#KernelRpm="kernel-default-2.6.5-7.111.19.i586.rpm"
#KernelRpm="kernel-default-2.6.13-15.7.i586.rpm"
#KernelRpm="kernel-default-2.6.16_rc1_git3-4.i586.rpm"
#KernelRpm="kernel-default-2.6.31.8-0.1.1.i586.rpm"
#KernelRpm="kernel-default-2.6.31.14-0.8.1.i586.rpm"
#KernelRpm="kernel-default-3.1.10-1.9.1.i586.rpm"
KernelRpm="kernel-default-3.11.6-4.1.x86_64.rpm"

# KernelRelease is required to find 
#   the correct /lib/modules/$KernelRelease directory
#KernelRelease="2.6.10-mm1"
#KernelRelease="2.6.13-15.7-default"
#KernelRelease="2.6.16-rc1-git3-4-default"
#KernelRelease="2.6.31.8-0.1-default"
#KernelRelease="2.6.31.14-0.8-default"
#KernelRelease="3.1.10-1.9-default"
KernelRelease="3.11.6-4-default"

# console keyboard map file
KeyboardMap="/etc/keymap/de.map"

# kernel modules (load always)
Modules_misc="af_packet"

# harddisk device (default)
# might changed during netboot
hardDiskDev="/dev/hda"

# templates files. 
# Templates variables might be changed in this files
HardDiskSpecificFiles="/boot/grub/menu.lst /etc/fstab /etc/mtab"
# harddisk in RefImage can be hda or sda
# and will be set arcordingly to hardware detection
HardDiskDevTemplRE='/dev/[sh]da'
GrubRootFsTempl='(hd0,1)'

# LDAP
Ldap_Server=$ALL_LDAPHOST
Top_Dn=$ALL_LDAPBASE
Ldap_Bind=$ALL_LDAPBIND

standards="cn=standards,"
#standards=""



# paths
Tmp_Path="/tmp"
# TMP_DIRS will be cleaned during installation
# This is required to prevent, 
# that new version doesn't fit on the system
# because some tmp directory is to full
TMP_DIRS="/tmp /var/tmp /var/cache/smartclient /var/lib/hardware/LOCK"
# TMP_FILES will be deleted during installation.
# It will also remove directories. 
# The difference to TMP_DIRS is, that the directory itself will also be deleted.
TMP_FILES="/var/lib/hardware/LOCK"


Root_Path="/mnt"
Images_Path="/images"

# stores variables set during netboot init
VARS_FILE="/tmp/vars"

# stores performance analysis of rsync servers
RSYNC_STATISTICS_FILE="/tmp/rsync_statistics"

#
# timeout settings
# set a global timeout (in seconds).
# after this time,
# the netboot environment will be rebooted
# independend of the state of the system.
# May be useful, because Rsync_Timeout might not work
#
#                0  never
# 60*60   =   3600  one hour
# 60*60*24 = 86400  one day
NETBOOT_GLOBAL_TIMEOUT=86400



Rsync_Server="rsync"

# Timeout for rsync transfer in seconds (0: no timeout)
# maybe unreliable for values others than 0 :-(
# still don't work (Debian Sarge, 20041231)
Rsync_Timeout=0

#
# defines a regex about the delta images,
# that are not deleted during an update
# and therefore should also not be deleted in LDAP
#
NETBOOT_DELTA_IMAGES_KEEP_REGEX="cn=refDeltaVMware.*|cn=refDeltaLocal.*"


# default time to wait for actions
Sleep_time=29

Leases_File="/var/state/dhcp/dhcpcd-eth0.info"

# verschiedene Leasetimes
Ldap2dhcp_Dynlease_Time=60
Ldap2dhcp_Netboot_Lease_Time=300

#
# command to access the
# password generator
#
# timeout: -w 15
Backend="nc -w 15"

Pass_Gen_Server=$ALL_PW_SERVER
Pass_Gen_Port=$ALL_PW_PORT


# sshd:
# dropbear:
# -b bannerfile   Display the contents of bannerfile before user login
#                 (default: none)
# -d dsskeyfile   Use dsskeyfile for the dss host key
#                 (default: /etc/dropbear/dropbear_dss_host_key)
# -r rsakeyfile   Use rsakeyfile for the rsa host key
#                 (default: /etc/dropbear/dropbear_rsa_host_key)
# -E              Log to stderr rather than syslog
# -m              Don't display the motd on login
# -s              Disable password logins
# -p port Listen on specified tcp port, up to 10 can be specified
SSHD="/usr/sbin/dropbear -m -E"

# --use-ascii
CURL="curl --silent"

# following action should be performed at the end
# rawHdServer, bootHd, reboot, halt, ash, kexec
default_action_when_finished=reboot
#default_action_when_finished=kexec
action_when_finished=reboot

### logging

# verbose output will be written to DEBUG_OUT
DEBUG_OUT=/dev/tty9

# file with local log informations
Log_Local=/tmp/log

# syslog server
Log_Server=loghost

# the syslog produces a MARK line every Log_Mark_Time minutes.
# set Log_Mark_Time to 0 to disable this.
Log_Mark_Time=20

# messages are send to this syslog facility
Log_Facility=local7

# messages have the following tag
Log_Tag=initrd

# syslog messages with a priority equal or greater the Log_Level 
# are send to the Log_Server
Log_Level_Syslog=$LOG_CRIT
#Log_Level=$Log_Level_Syslog

# messages with a priority equal or greater the Log_Level_Console
# are printed to the console. 
Log_Level_Console=$LOG_INFO
#Log_Level_Console=$LOG_DEBUG

# messages with a priority equal or greater the Log_Level 
# produce a beep sound 
Log_Level_Beep=$LOG_ERR

# kernel messages printed to the console
Log_Level_Kernel_Console=1

# log to console
Log_Console_Target=/dev/tty1

# if defined, everything is logged to this
Log_Debug_Target=$DEBUG_OUT
