Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/mcore-client-deactivated.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2712 - (hide annotations) (download)
Thu Dec 17 17:01:16 2015 UTC (8 years, 4 months ago) by niro
File size: 522 byte(s)
-use file copies so fluxbox recognize the new menu via file-updates
1 niro 2702 #!/bin/bash
2    
3     MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4     source @@SYSCONFDIR@@/mcore/mcore.conf
5     source ${MCORE_LIBDIR}/include/common.global.class
6    
7     while [[ -e ${MCORE_CONFIG_PATH}/client-deactivated ]]
8     do
9 niro 2711 # deactivate the fluxbox menu
10 niro 2712 cat ~/.fluxbox/menu-deactivated > ~/.fluxbox/menu
11 niro 2711
12     # print a nice message
13 niro 2710 xmessage -center -title 'MCORE-CLIENT-DEACTIVATED' -timeout 10 -buttons '' "
14 niro 2702
15    
16    
17 niro 2710 CLIENT #$(mcore-serial) DEACTIVATED!
18 niro 2702
19    
20    
21    
22 niro 2710 "
23 niro 2702 done
24 niro 2711
25     # activate the fluxbox menu now
26 niro 2712 cat ~/.fluxbux/menu-activated > ~/.fluxbox/menu

Properties

Name Value
svn:executable *