Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox-rebuild-menu.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2710 by niro, Fri Sep 25 12:38:56 2015 UTC revision 2711 by niro, Thu Dec 17 16:42:23 2015 UTC
# Line 20  do Line 20  do
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@@
# Line 55  addconfig '[end]' Line 55  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    ln -snf menu-activated ${MROOT}/${MCORE_UNPRIV_HOME}/@@FLUXBOX_USER_CONFIG_DIR@@/menu

Legend:
Removed from v.2710  
changed lines
  Added in v.2711