20 |
done |
done |
21 |
|
|
22 |
# rebuild the user menu too atm |
# rebuild the user menu too atm |
23 |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu" |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-activated" |
24 |
if [ ! -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ ] |
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_USER_CONFIG_DIR@@ |
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} -d ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@ |
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 |
|
ln -snf menu-activated ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu |