1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
|
3 |
MCLIBDIR="@@MCORE_LIBDIR@@" |
MCORE_LIBDIR="@@MCORE_LIBDIR@@" |
4 |
source @@SYSCONFDIR@@/mcore/mcore.conf |
source @@SYSCONFDIR@@/mcore/mcore.conf |
5 |
source ${MCORE_LIBDIR}/include/common.global.class |
source ${MCORE_LIBDIR}/include/common.global.class |
6 |
|
|
21 |
|
|
22 |
# rebuild the user menu too atm |
# rebuild the user menu too atm |
23 |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/menu" |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox/menu" |
24 |
if [[ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox ]] |
if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox ] |
25 |
then |
then |
26 |
install -o ${MCORE_UNPRIV_USER} -o ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox |
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox |
27 |
fi |
fi |
28 |
|
|
29 |
# fluxbox menu header |
# fluxbox menu header |
30 |
clearconfig |
clearconfig |
31 |
if [ -e ${MROOT}@@SYSCONFDIR@@/os-release ] |
if [ -e ${MROOT}@@SYSCONFDIR@@/os-release ] |
32 |
then |
then |
33 |
ver=$(source ${MROOT}; echo "${ID}-${Version_ID}") |
ver=$(source ${MROOT}@@SYSCONFDIR@@/os-release; echo "${ID}-${Version_ID}") |
34 |
elif [ -e ${MROOT}@@SYSCONFDIR@@/mageversion ] |
elif [ -e ${MROOT}@@SYSCONFDIR@@/mageversion ] |
35 |
then |
then |
36 |
ver="$(< ${MROOT}@@SYSCONFDIR@@/mageversion)" |
ver="$(< ${MROOT}@@SYSCONFDIR@@/mageversion)" |
38 |
else |
else |
39 |
ver="${MCORE_DISTRIBUTION}" |
ver="${MCORE_DISTRIBUTION}" |
40 |
fi |
fi |
41 |
addconfig "[begin] (${ver} #${MCORE_SERIAL})" |
addconfig "[begin] (${ver} #$(mcore-serial))" |
42 |
|
|
43 |
# add a newline (maybe there is no crlf in the header) |
# add a newline (maybe there is no crlf in the header) |
44 |
addconfig |
addconfig |