Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2711 - (show annotations) (download)
Thu Dec 17 16:42:23 2015 UTC (8 years, 4 months ago) by niro
File size: 504 byte(s)
-honor fluxbox menu deactivation/activation for deactivated clients
1 #!/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 # deactivate the fluxbox menu
10 ln -snf menu-deactivated ~/.fluxbox/menu
11
12 # print a nice message
13 xmessage -center -title 'MCORE-CLIENT-DEACTIVATED' -timeout 10 -buttons '' "
14
15
16
17 CLIENT #$(mcore-serial) DEACTIVATED!
18
19
20
21
22 "
23 done
24
25 # activate the fluxbox menu now
26 ln -snf menu-activated ~/.fluxbox/menu

Properties

Name Value
svn:executable *