Magellan Linux

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

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

revision 2710 by niro, Thu Dec 17 16:24:20 2015 UTC revision 2720 by niro, Fri Dec 18 14:13:48 2015 UTC
# Line 4  " Line 4  "
4  source @@SYSCONFDIR@@/mcore/mcore.conf  source @@SYSCONFDIR@@/mcore/mcore.conf
5  source ${MCORE_LIBDIR}/include/common.global.class  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 ]]  while [[ -e ${MCORE_CONFIG_PATH}/client-deactivated ]]
14  do  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 '' "   xmessage -center -title 'MCORE-CLIENT-DEACTIVATED' -timeout 10 -buttons '' "
20    
21    
22    
23   CLIENT #$(mcore-serial) DEACTIVATED!   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  done
32    
33    # activate the fluxbox menu now
34    cat ~/.fluxbox/menu-activated > ~/.fluxbox/menu

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