55 |
# add a newline (maybe there is no crlf in the footer) |
# add a newline (maybe there is no crlf in the footer) |
56 |
addconfig |
addconfig |
57 |
|
|
58 |
# add a menu for an deactivated client |
# systemd provides this via tmpfiles.d |
59 |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-deactivated" |
if [[ ! -e @@DATADIR@@/factory/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-deactivated ]] |
60 |
clearconfig |
then |
61 |
addconfig "[begin] (${ver} #$(mcore-serial))" |
# add a menu for an deactivated client |
62 |
addconfig |
CONFIG="${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu-deactivated" |
63 |
addconfig '[separator]' |
clearconfig |
64 |
#addconfig '[exit] (Abmelden)' |
addconfig "[begin] (${ver} #$(mcore-serial))" |
65 |
addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}' |
addconfig |
66 |
addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}' |
addconfig '[separator]' |
67 |
addconfig '[end]' |
#addconfig '[exit] (Abmelden)' |
68 |
addconfig |
addconfig '[exec] (Neustarten) {sudo @@SBINDIR@@/reboot}' |
69 |
|
addconfig '[exec] (Herunterfahren) {sudo @@SBINDIR@@/poweroff}' |
70 |
|
addconfig '[end]' |
71 |
|
addconfig |
72 |
|
fi |
73 |
|
|
74 |
# activate the normal client menu |
# activate the normal client menu |
75 |
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} \ |
install -o ${MCORE_UNPRIV_USER} -g ${MCORE_UNPRIV_GROUP} \ |