Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2720 - (show 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 #!/bin/bash
2
3 MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4 source @@SYSCONFDIR@@/mcore/mcore.conf
5 source ${MCORE_LIBDIR}/include/common.global.class
6
7 [ -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 while [[ -e ${MCORE_CONFIG_PATH}/client-deactivated ]]
14 do
15 # deactivate the fluxbox menu
16 cat ~/.fluxbox/menu-deactivated > ~/.fluxbox/menu
17
18 # print a nice message
19 xmessage -center -title 'MCORE-CLIENT-DEACTIVATED' -timeout 10 -buttons '' "
20
21
22
23 CLIENT #$(mcore-serial) DEAKTIVIERT!
24
25 Bitte melden Sie sich in Ihrer ${HELPDESK_UNIT} unter der Telefonnummer ${HELPDESK_PHONE}.
26
27
28
29
30 "
31 done
32
33 # activate the fluxbox menu now
34 cat ~/.fluxbox/menu-activated > ~/.fluxbox/menu

Properties

Name Value
svn:executable *