Hello,
first of all, thanks for sharing your solution. However, I could use some
more information, in particular:
Can you give a clue, where exactly the files to be modified are located?
I downloaded both the open source and the free-for-personal-use closed
source edition, and don't see a script install.sh in any of them.
Thanks in advance
Alex Baer
Pawe? Salawa wrote:
> Hello,
>
> As I told on #vbox at Freenode, I post solution for installing vbox on
> Slackware Linux:
>
> This document describes how to modify install.sh to make it suitable for
> slackware.
>
> 1. There is no /etc/init.d. There is /etc/rc.d with rc.* scripts,
> like rc.udev, rc.alsa, etc. vboxdrv.sh from vbox package needs to
> be copied to /etc/rc.d/rc.vboxdrv. Remember to make 755 permissions for
> it
> by:
> chmod 755 /etc/rc.d/rc.vboxdrv
>
> 2. After copying to /etc/rc.d/rc.vboxdrv, this script needs some changes
> to adopt for slackware. This is patch that can be applied:
>
> --- CUT HERE ---
> --- vboxdrv.sh.old 2007-01-14 14:25:08.000000000 +0000
> +++ vboxdrv.sh 2007-01-17 21:15:18.000000000 +0000
> @@ -38,6 +38,8 @@
> system=debian
> elif [ -f /etc/gentoo-release ]; then
> system=gentoo
> +elif [ -f /etc/slackware-version ]; then
> + system=slackware
> else
> echo "$0: Unknown system" 1>&2
> fi
> @@ -90,6 +92,20 @@
> }
> fi
>
> +if [ $system = slackware ]; then
> + fail_msg() {
> + echo "...fail!"
> + }
> +
> + succ_msg() {
> + echo "...done."
> + }
> +
> + begin() {
> + echo -n $1
> + }
> +fi
> +
> if [ $system = gentoo ]; then
> . /sbin/functions.sh
> fail_msg() {
> @@ -151,7 +167,7 @@
> sleep 1
> }
> if [ ! -c $dev ]; then
> - maj=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/devices`
> + maj=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/misc`
> test -z $maj && {
> rmmod $modname
> fail "Cannot locate device major"
> --- CUT HERE ---
>
> It would be nice to make script check both of /proc/devices and
> /proc/misc, instead of only one of them.
>
> 3. runlevel.sh called from install.sh will not work on slackware.
> We just need to add lines:
> # Start vboxdrv
> if [ -x /etc/rc.d/rc.vboxdrv ]; then
> /etc/rc.d/rc.vboxdrv start
> fi
> to /etc/rc.d/rc.local,
> so it will be called at system boot.
>
> 4. To finish intallation we cannot start vboxdrv with: /etc/init.d/vboxdrv
> start. In our case we have to use: /etc/rc.d/rc.vboxdrv start
>
>
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users