From: "Jim Ramsay (lack)" <lack@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/virtualbox-guest-additions/files: virtualbox-guest-additions-6.initd virtualbox-guest-additions-5.initd virtualbox-guest-additions-4.initd
Date: Tue, 11 May 2010 18:52:38 +0000 (UTC) [thread overview]
Message-ID: <20100511185238.221592C04D@corvid.gentoo.org> (raw)
lack 10/05/11 18:52:37
Added: virtualbox-guest-additions-6.initd
virtualbox-guest-additions-5.initd
Removed: virtualbox-guest-additions-4.initd
Log:
Need s/vboxadd/vboxguest/ in the init script for version 3.1.4 and later (Bug #305583)
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Revision Changes Path
1.1 app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-6.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-6.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-6.initd?rev=1.1&content-type=text/plain
Index: virtualbox-guest-additions-6.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
depend() {
need localmount
before xdm
}
createvboxdevice() {
local maj min
maj=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/devices`
if ! [[ -z $maj ]] ; then
min=0
else
min=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/misc`
if ! [[ -z $min ]] ; then
maj=10
fi
fi
mknod /dev/vboxguest c $maj $min -m 0664 &> /dev/null
}
start() {
ebegin "Starting VirtualBox guest additions"
if [[ -e /dev/vboxguest ]] ; then
rm -f /dev/vboxguest &> /dev/null
fi
einfo " Loading kernel modules and creating devices"
/sbin/modprobe vboxguest &> /dev/null
createvboxdevice
/sbin/modprobe vboxsf &> /dev/null
einfo " Starting the vboxguest system service"
start-stop-daemon --start --make-pidfile \
--exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxguest-service.pid \
--name vboxguest-service \
--background -- \
--foreground
eend $? "Failed to start VirtualBox guest additions"
}
stop() {
ebegin "Stopping VirtualBox guest additions"
einfo " Stopping the vboxguest system service"
start-stop-daemon --stop --quiet \
--pidfile /var/run/vboxguest-service.pid --name vboxguest-service
einfo " Unloading kernel modules and removing devices"
/sbin/rmmod vboxsf &> /dev/null
/sbin/rmmod vboxguest &> /dev/null
rm -f /dev/vboxguest &> /dev/null
eend $?
}
1.1 app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.initd?rev=1.1&content-type=text/plain
Index: virtualbox-guest-additions-5.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
depend() {
need localmount
before xdm
}
createvboxdevice() {
local maj min
maj=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/devices`
if ! [[ -z $maj ]] ; then
min=0
else
min=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/misc`
if ! [[ -z $min ]] ; then
maj=10
fi
fi
mknod /dev/vboxguest c $maj $min -m 0664 &> /dev/null
}
start() {
ebegin "Starting VirtualBox guest additions"
if [[ -e /dev/vboxguest ]] ; then
rm -f /dev/vboxguest &> /dev/null
fi
einfo " Loading kernel modules and creating devices"
/sbin/modprobe vboxguest &> /dev/null
createvboxdevice
/sbin/modprobe vboxvfs &> /dev/null
einfo " Starting the vboxguest system service"
start-stop-daemon --start --make-pidfile \
--exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxguest-service.pid \
--name vboxguest-service \
--background -- \
--foreground
eend $? "Failed to start VirtualBox guest additions"
}
stop() {
ebegin "Stopping VirtualBox guest additions"
einfo " Stopping the vboxguest system service"
start-stop-daemon --stop --quiet \
--pidfile /var/run/vboxguest-service.pid --name vboxguest-service
einfo " Unloading kernel modules and removing devices"
/sbin/rmmod vboxvfs &> /dev/null
/sbin/rmmod vboxguest &> /dev/null
rm -f /dev/vboxguest &> /dev/null
eend $?
}
reply other threads:[~2010-05-11 18:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100511185238.221592C04D@corvid.gentoo.org \
--to=lack@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox