20 |
done |
done |
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_USER_CONFIG_DIR@@/menu-activated" |
24 |
if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox ] |
if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ ] |
25 |
then |
then |
26 |
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/.fluxbox |
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ |
27 |
fi |
fi |
28 |
|
|
29 |
# fluxbox menu header |
# fluxbox menu header |
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 |
48 |
|
|
49 |
# fluxbox menu footer |
# fluxbox menu footer |
50 |
addconfig '[separator]' |
addconfig '[separator]' |
51 |
addconfig '[exit] (Abmelden)' |
#addconfig '[exit] (Abmelden)' |
52 |
addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}' |
addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}' |
53 |
addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}' |
addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}' |
54 |
addconfig '[end]' |
addconfig '[end]' |
55 |
|
|
56 |
# add a newline (maybe there is no crlf in the footer) |
# add a newline (maybe there is no crlf in the footer) |
57 |
addconfig |
addconfig |
58 |
|
|
59 |
|
# add a menu for an deactivated client |
60 |
|
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-deactivated" |
61 |
|
clearconfig |
62 |
|
addconfig "[begin] (${ver} #$(mcore-serial))" |
63 |
|
addconfig |
64 |
|
addconfig '[separator]' |
65 |
|
#addconfig '[exit] (Abmelden)' |
66 |
|
addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}' |
67 |
|
addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}' |
68 |
|
addconfig '[end]' |
69 |
|
addconfig |
70 |
|
|
71 |
|
# activate the normal client menu |
72 |
|
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} \ |
73 |
|
-m0644 ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-activated \ |
74 |
|
${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu |