Magellan Linux

Annotation of /trunk/virtualbox/patches/virtualbox-4.0.10-routines-magellan.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1386 - (hide annotations) (download)
Thu Jun 30 18:40:21 2011 UTC (12 years, 10 months ago) by niro
File size: 4542 byte(s)
-magellan patches virtualbox-4.0.10
1 niro 1386 diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/routines.sh VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/routines.sh
2     --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/routines.sh 2011-06-27 16:02:00.000000000 +0200
3     +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/routines.sh 2011-06-30 22:37:09.000000000 +0200
4     @@ -195,6 +195,9 @@
5     elif [ -f /etc/gentoo-release ]; then
6     ro_SYS_TYPE=gentoo
7     ro_INIT_TYPE=sysv
8     + elif [ -f /etc/mageversion ]; then
9     + ro_SYS_TYPE=magellan
10     + ro_INIT_TYPE=sysv
11     elif [ -x /sbin/chkconfig ]; then
12     ro_SYS_TYPE=redhat
13     ro_INIT_TYPE=sysv
14     @@ -404,6 +407,12 @@
15     { log "addrunlevel: update-rc.d not found" && return 1; }
16     rc-update del $1 > /dev/null 2>&1
17     rc-update add $1 default > /dev/null 2>&1
18     + # Magellan Linux
19     + elif [ "$ro_SYS_TYPE" = "magellan" ]; then
20     + test -x `which rc-config` || \
21     + { log "addrunlevel: rc-config not found" && return 1; }
22     + rc-config del $1 > /dev/null 2>&1
23     + rc-config add $1 default > /dev/null 2>&1
24     # Linux from scratch, by the book
25     elif [ "$ro_SYS_TYPE" = "lfs" ]; then
26     test -x /etc/rc.d/init.d/$1 || \
27     diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in
28     --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in 2011-06-27 16:02:00.000000000 +0200
29     +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in 2011-06-30 22:42:32.000000000 +0200
30     @@ -25,6 +25,15 @@
31     # Description: VirtualBox balloon control daemon
32     ### END INIT INFO
33    
34     +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
35     +#%start: 80
36     +#%stop: 20
37     +
38     +#deps
39     +#%needs:
40     +#%before:
41     +#%after:
42     +
43     PATH=$PATH:/bin:/sbin:/usr/sbin
44     DEBIAN=%DEBIAN%
45     NOLSB=%NOLSB%
46     @@ -57,6 +66,9 @@
47     elif [ -f /etc/gentoo-release ]; then
48     system=gentoo
49     PIDFILE="/var/run/vboxballoonctrl-service"
50     +elif [ -f /etc/mageversion ]; then
51     + system=magellan
52     + PIDFILE="/var/run/vboxballoonctrl-service"
53     elif [ -f /etc/arch-release ]; then
54     system=arch
55     PIDFILE="/var/run/vboxballoonctrl-service"
56     @@ -183,6 +195,31 @@
57     fi
58     fi
59    
60     +if [ "$system" = "magellan" ]; then
61     + . /etc/rc.d/init.d/functions
62     + start_daemon() {
63     + usr="$1"
64     + shift
65     + bin="$1"
66     + shift
67     + start-stop-daemon --background --chuid $usr --start --exec $bin -- $@
68     + }
69     + killproc() {
70     + start-stop-daemon --stop --exec $@
71     + }
72     + if [ -n "$NOLSB" ]; then
73     + fail_msg() {
74     + evaluate_retval
75     + }
76     + succ_msg() {
77     + evaluate_retval
78     + }
79     + begin_msg() {
80     + echo -e ${COLOREDSTAR}"$1"
81     + }
82     + fi
83     +fi
84     +
85     if [ "$system" = "arch" ]; then
86     USECOLOR=yes
87     . /etc/rc.d/functions
88     diff -Naur VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxweb-service.sh.in VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxweb-service.sh.in
89     --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxweb-service.sh.in 2011-06-27 16:02:00.000000000 +0200
90     +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxweb-service.sh.in 2011-06-30 22:44:39.000000000 +0200
91     @@ -25,6 +25,15 @@
92     # Description: VirtualBox web service API
93     ### END INIT INFO
94    
95     +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
96     +#%start: 80
97     +#%stop: 20
98     +
99     +#deps
100     +#%needs:
101     +#%before:
102     +#%after:
103     +
104     PATH=$PATH:/bin:/sbin:/usr/sbin
105     DEBIAN=%DEBIAN%
106     NOLSB=%NOLSB%
107     @@ -57,6 +66,9 @@
108     elif [ -f /etc/gentoo-release ]; then
109     system=gentoo
110     PIDFILE="/var/run/vboxweb-service"
111     +elif [ -f /etc/mageversion ]; then
112     + system=magellan
113     + PIDFILE="/var/run/vboxweb-service"
114     elif [ -f /etc/arch-release ]; then
115     system=arch
116     PIDFILE="/var/run/vboxweb-service"
117     @@ -183,6 +195,31 @@
118     fi
119     fi
120    
121     +if [ "$system" = "magellan" ]; then
122     + . /etc/rc.d/init.d/functions
123     + start_daemon() {
124     + usr="$1"
125     + shift
126     + bin="$1"
127     + shift
128     + start-stop-daemon --background --chuid $usr --start --exec $bin -- $@
129     + }
130     + killproc() {
131     + start-stop-daemon --stop --exec $@
132     + }
133     + if [ -n "$NOLSB" ]; then
134     + fail_msg() {
135     + evaluate_retval
136     + }
137     + succ_msg() {
138     + evaluate_retval
139     + }
140     + begin_msg() {
141     + echo -e ${COLOREDSTAR}"$1"
142     + }
143     + fi
144     +fi
145     +
146     if [ "$system" = "arch" ]; then
147     USECOLOR=yes
148     . /etc/rc.d/functions