sysconfig_setvars() {
    local -

    set +x
# TODO variables that should disapear when the fab partition and file are correctly done
    ETHLCFG_LAN=1
    ETHLCFG_PC=0

# configuration variables for /etc/init.d/S* scripts
    TTY_INTF=ttyS0
    SYSLOGD_OPT=-S
    KLOGD_LEVEL=4
    MAX_RETRY=10
    SYSLOGNG_OPT=

# configuration variables for /config
    NV_ROOT=/config
    NVDEFAULT_ROOT=/etc/config/default
    NV8021X_ROOT=$NV_ROOT/802.1x
    NVDHCP_ROOT=$NV_ROOT/dhcp
    NVDM_ROOT=$NV_ROOT/dm
    NVLLDP_ROOT=$NV_ROOT/lldp
    NVLOCAL_ROOT=$NV_ROOT/local
    NVCURRENT_ROOT=$NV_ROOT/current
    NVVOIP_ROOT=$NV_ROOT/voip
    NVFAB_ROOT=$NV_ROOT/fab

    NVETC_ROOT=$NV_ROOT/etc
    NVUBOOT_ROOT=$NV_ROOT/u-boot

# configuration variables for /data
    DATA_ROOT=/data
    DATA_USER_ROOT=/data/user-data
    DATA_LOG_ROOT=/data/log

    MODULE_DIR=/lib/modules/$(uname -r)/BROADCOM

# wireless related configuration
# WLAN_INTERFACE=eth1
# WLAN_DRIVER=${MODULE_DIR}/wl.ko
# WLAN_UTIL=/bin/wl

# wireless configuration for DHD module
    DHD_DRIVER=${MODULE_DIR}/dhd.ko
    DHD_MODPROBE=dhd
    DHD_UTIL=/bin/dhd
# WLAN_BIN_FILE=/bin/rtecdc.bin
# WLAN_CFG_FILE=/etc/dhd.cfg.ORIG
# 
# blank by default
# WLAN_PASS=
# WLAN_SSID=
# WLAN_ENC=
# 
# set hostname
    HOSTNAME=`cat /etc/hostname`

    TIMESTAMPFILE=$NVETC_ROOT/timestamp
    VERSIONFILE=/etc/versions

    DEBUGBINPATH=/usr/sbin/debug

# misc variables
    esc=$'\x1b'
    sanityflag=/.nosanity
    stepFile=/tmp/step
}

sysconfig_setvars
