13 |
source ${MCORE_LIBDIR}/include/common.global.class |
source ${MCORE_LIBDIR}/include/common.global.class |
14 |
include ${MCORE_LIBDIR}/include/daemon.global.class |
include ${MCORE_LIBDIR}/include/daemon.global.class |
15 |
include ${MCORE_LIBDIR}/include/sessionauth.global.class |
include ${MCORE_LIBDIR}/include/sessionauth.global.class |
|
#include ${MCORE_LIBDIR}/include/mysqlfunctions.global.class |
|
16 |
include ${MCORE_LIBDIR}/include/register.global.class |
include ${MCORE_LIBDIR}/include/register.global.class |
17 |
include ${MCORE_LIBDIR}/include/hwdetection.global.class |
include ${MCORE_LIBDIR}/include/hwdetection.global.class |
18 |
|
|
21 |
|
|
22 |
# config settings |
# config settings |
23 |
include @@SYSCONFDIR@@/mcore/mcore.conf |
include @@SYSCONFDIR@@/mcore/mcore.conf |
|
#source @@SYSCONFDIR@@/mcore/serial |
|
|
|
|
|
# import_hardware_resource() |
|
|
# { |
|
|
# local resource="$1" |
|
|
# local value |
|
|
# |
|
|
# # special cases |
|
|
# case ${resource} in |
|
|
# gfxcard) value="$(get_x11_driver_modules)" ;; |
|
|
# *) value="$(get_hwinfo --with-description ${resource})" ;; |
|
|
# esac |
|
|
# |
|
|
# # if [[ ${DEBUG} = 1 ]] |
|
|
# # then |
|
|
# # echo "${resource}=${value}" >> /root/lala.log |
|
|
# # echo "mysqldo \"update status set ${resource}='${value}' where serial=${ALX_SERIAL};\"" >> /root/lala.log |
|
|
# # fi |
|
|
# # mysql_insert status,serial="${ALX_SERIAL}","${resource}"="${value}" |
|
|
# |
|
|
# import_resource status "${ALX_SERIAL}" "${resource}" "${value}" |
|
|
# } |
|
|
|
|
|
|
|
|
# set_init_state() |
|
|
# { |
|
|
# local ip |
|
|
# ip=$(ifconfig | grep -A1 eth0 | grep inet | sed 's/.*inet\ addr:\(.*\) Bcast.*/\1/;') |
|
|
# |
|
|
# } |
|
24 |
|
|
25 |
DEBUG=1 |
DEBUG=1 |
26 |
NOCOLORS="false" |
NOCOLORS="false" |