Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2720 - (hide annotations) (download)
Fri Dec 18 14:13:48 2015 UTC (8 years, 4 months ago) by niro
File size: 888 byte(s)
-make the helpdesk information configurable via the global database
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 niro 2720 [ -f ${MCORE_CONFIG_PATH}/helpdesk/unit ] && ${MCORE_CONFIG_PATH}/helpdesk/unit
8     [ -f ${MCORE_CONFIG_PATH}/helpdesk/phone ] && ${MCORE_CONFIG_PATH}/helpdesk/phone
9    
10     [[ -z ${HELPDESK_UNIT} ]] && HELPDESK_UNIT="UNKNOWN"
11     [[ -z ${HELPDESK_PHONE} ]] && HELPDESK_PHONE="UNKNOWN"
12    
13 niro 2702 while [[ -e ${MCORE_CONFIG_PATH}/client-deactivated ]]
14     do
15 niro 2711 # deactivate the fluxbox menu
16 niro 2712 cat ~/.fluxbox/menu-deactivated > ~/.fluxbox/menu
17 niro 2711
18     # print a nice message
19 niro 2710 xmessage -center -title 'MCORE-CLIENT-DEACTIVATED' -timeout 10 -buttons '' "
20 niro 2702
21    
22    
23 niro 2716 CLIENT #$(mcore-serial) DEAKTIVIERT!
24 niro 2702
25 niro 2720 Bitte melden Sie sich in Ihrer ${HELPDESK_UNIT} unter der Telefonnummer ${HELPDESK_PHONE}.
26 niro 2702
27    
28    
29 niro 2716
30 niro 2710 "
31 niro 2702 done
32 niro 2711
33     # activate the fluxbox menu now
34 niro 2714 cat ~/.fluxbox/menu-activated > ~/.fluxbox/menu

Properties

Name Value
svn:executable *