Contents of /mcore-src/trunk/mcore-tools/src/mcore-client-deactivated.in
Parent Directory | Revision Log
Revision 2796 -
(show annotations)
(download)
Mon Jun 20 11:33:18 2016 UTC (8 years, 3 months ago) by niro
File size: 992 byte(s)
Mon Jun 20 11:33:18 2016 UTC (8 years, 3 months ago) by niro
File size: 992 byte(s)
-install missing menu-activated on first boot
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 | cat ~/.fluxbox/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) DEAKTIVIERT! |
18 | |
19 | Bitte melden Sie sich in Ihrer $(mcore-helpdesk-unit) unter der Telefonnummer $(mcore-helpdesk-phone). |
20 | |
21 | |
22 | |
23 | |
24 | " |
25 | done |
26 | |
27 | # 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 | # activate the fluxbox menu now |
37 | cat ~/.fluxbox/menu-activated > ~/.fluxbox/menu |
Properties
Name | Value |
---|---|
svn:executable | * |