Magellan Linux

Annotation of /trunk/mlivecdbuild/profiles/openvpn-i686/custom-files/setup-openvpn.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 583 - (hide annotations) (download)
Sat Oct 13 12:01:02 2007 UTC (16 years, 7 months ago) by niro
File size: 1358 byte(s)
-fixed idesk installation

1 niro 582 #!/bin/bash
2 niro 583 # $Header: /home/cvsd/magellan-cvs/magellan-src/mlivecdbuild/profiles/openvpn-i686/custom-files/setup-openvpn.rc,v 1.2 2007-10-13 12:01:02 niro Exp $
3 niro 582
4     #%rlevels: 7:s
5     #%start: 50
6     #%stop:
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     if [[ -d /mnt/cdrom/openvpn ]]
17     then
18     echo -e ${COLOREDSTAR}"Copying OpenVPN settings from cdrom to /etc/openvpn ... "
19     [[ ! -d /etc/openvpn ]] && install -d /etc/openvpn
20     cp -R /mnt/cdrom/openvpn/* /etc/openvpn
21     evaluate_retval
22     fi
23    
24     if [[ -d /mnt/cdrom/conf.d ]]
25     then
26     echo -e ${COLOREDSTAR}"Copying system-configs from cdrom to /etc/conf.d ... "
27     [[ ! -d /etc/conf.d ]] && install -d /etc/conf.d
28     cp -R /mnt/cdrom/conf.d/* /etc/conf.d
29     evaluate_retval
30     fi
31    
32     if [[ -d /mnt/cdrom/idesk ]]
33     then
34     echo -e ${COLOREDSTAR}"Copying idesk configs from cdrom to users home ... "
35     [[ ! -d /home/magellan/.idesktop ]] && install -d /home/magellan/.idesktop
36     for i in /mnt/cdrom/idesk/*
37     do
38     if [[ $(basename ${i}) = .ideskrc ]] || [[ $(basename ${i}) = dotideskrc ]]
39     then
40     cp ${i} /home/magellan/.ideskrc
41     else
42     # there may be folders, so copy recursivly
43 niro 583 cp -R ${i} /home/magellan/.idesktop/
44 niro 582 fi
45 niro 583 chown magellan:users /home/magellan/.ideskrc
46     chown -R magellan:users /home/magellan/.idesktop
47 niro 582 done
48     evaluate_retval
49     fi
50    
51     update_svcstatus $1
52     splash svc_started "$(basename $0)" 0