Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1387 - (show annotations) (download)
Thu Jun 30 18:53:42 2011 UTC (12 years, 10 months ago) by niro
File size: 1684 byte(s)
-fixed patch, patch balloon driver only
1 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
2 --- VirtualBox-4.0.10_OSE/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in 2011-06-27 16:02:00.000000000 +0200
3 +++ VirtualBox-4.0.10_OSE-magellan/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in 2011-06-30 22:42:32.000000000 +0200
4 @@ -25,6 +25,15 @@
5 # Description: VirtualBox balloon control daemon
6 ### END INIT INFO
7
8 +#%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
9 +#%start: 80
10 +#%stop: 20
11 +
12 +#deps
13 +#%needs:
14 +#%before:
15 +#%after:
16 +
17 PATH=$PATH:/bin:/sbin:/usr/sbin
18 DEBIAN=%DEBIAN%
19 NOLSB=%NOLSB%
20 @@ -57,6 +66,9 @@
21 elif [ -f /etc/gentoo-release ]; then
22 system=gentoo
23 PIDFILE="/var/run/vboxballoonctrl-service"
24 +elif [ -f /etc/mageversion ]; then
25 + system=magellan
26 + PIDFILE="/var/run/vboxballoonctrl-service"
27 elif [ -f /etc/arch-release ]; then
28 system=arch
29 PIDFILE="/var/run/vboxballoonctrl-service"
30 @@ -183,6 +195,31 @@
31 fi
32 fi
33
34 +if [ "$system" = "magellan" ]; then
35 + . /etc/rc.d/init.d/functions
36 + start_daemon() {
37 + usr="$1"
38 + shift
39 + bin="$1"
40 + shift
41 + start-stop-daemon --background --chuid $usr --start --exec $bin -- $@
42 + }
43 + killproc() {
44 + start-stop-daemon --stop --exec $@
45 + }
46 + if [ -n "$NOLSB" ]; then
47 + fail_msg() {
48 + evaluate_retval
49 + }
50 + succ_msg() {
51 + evaluate_retval
52 + }
53 + begin_msg() {
54 + echo -e ${COLOREDSTAR}"$1"
55 + }
56 + fi
57 +fi
58 +
59 if [ "$system" = "arch" ]; then
60 USECOLOR=yes
61 . /etc/rc.d/functions