Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2796 - (hide annotations) (download)
Mon Jun 20 11:33:18 2016 UTC (7 years, 10 months ago) by niro
File size: 992 byte(s)
-install missing menu-activated on first boot
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 2716 CLIENT #$(mcore-serial) DEAKTIVIERT!
18 niro 2702
19 niro 2723 Bitte melden Sie sich in Ihrer $(mcore-helpdesk-unit) unter der Telefonnummer $(mcore-helpdesk-phone).
20 niro 2702
21    
22    
23 niro 2716
24 niro 2710 "
25 niro 2702 done
26 niro 2711
27 niro 2796 # if .fluxbox/menu-activated does not exist at this point, then this is the
28     # first boot and fluxbox-rebuild-menu was never run on this system before.
29     # so copy a sane default config file
30     if [ ! -f ~/.fluxbox/menu-activated ] && [ -f @@DATADIR@@/fluxbox/menu ]
31     then
32     [ -d ~/.fluxbox ] || mkdir ~/.fluxbox
33     cp @@DATADIR@@/fluxbox/menu ~/.fluxbox/menu-activated
34     fi
35    
36 niro 2711 # activate the fluxbox menu now
37 niro 2714 cat ~/.fluxbox/menu-activated > ~/.fluxbox/menu

Properties

Name Value
svn:executable *