1 --- vboxnet.sh.orig 2008-05-24 15:13:24.565106815 -0300
2 +++ vboxnet.sh 2008-05-24 15:15:59.148424975 -0300
4 # Description: VirtualBox permanent host networking setup
10 PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
11 CONFIG="/etc/vbox/interfaces"
12 VARDIR="/var/run/VirtualBox"
13 VARFILE="/var/run/VirtualBox/vboxnet"
17 -[ -f /lib/lsb/init-functions ] || NOLSB=yes
23 -if [ -n "$NOLSB" ]; then
24 - if [ -f /etc/redhat-release ]; then
26 - elif [ -f /etc/SuSE-release ]; then
28 - elif [ -f /etc/gentoo-release ]; then
33 -if [ -z "$NOLSB" ]; then
34 - . /lib/lsb/init-functions
37 - log_failure_msg "$1"
40 - log_success_msg " done."
46 - if [ "$system" = "redhat" ]; then
47 - . /etc/init.d/functions
57 - elif [ "$system" = "suse" ]; then
68 - elif [ "$system" = "gentoo" ]; then
69 - . /sbin/functions.sh
79 - if [ "`which $0`" = "/sbin/rc" ]; then
91 - if [ "$system" != "gentoo" ]; then
93 - [ -z "${1:-}" ] && return 1
94 - if [ -z "${2:-}" ]; then