[Pkg-virtualbox-commits] r338 - in trunk/debian: . patches

meskes at alioth.debian.org meskes at alioth.debian.org
Mon Aug 25 08:42:40 UTC 2008


Author: meskes
Date: 2008-08-25 08:42:40 +0000 (Mon, 25 Aug 2008)
New Revision: 338

Modified:
   trunk/debian/changelog
   trunk/debian/patches/09-initscript.dpatch
Log:
Changed init script to better handle NOLSB variable.



Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-08-19 15:58:00 UTC (rev 337)
+++ trunk/debian/changelog	2008-08-25 08:42:40 UTC (rev 338)
@@ -2,6 +2,7 @@
 
   [ Michael Meskes ]
   * New upstream version.
+  * Updated initscript to better handle LSB compatibility, yet again closes: #474089
 
   [ Loic Minier ]
   * Demote module-assistant deps to Recommends; closes: #495671.

Modified: trunk/debian/patches/09-initscript.dpatch
===================================================================
--- trunk/debian/patches/09-initscript.dpatch	2008-08-19 15:58:00 UTC (rev 337)
+++ trunk/debian/patches/09-initscript.dpatch	2008-08-25 08:42:40 UTC (rev 338)
@@ -8,18 +8,20 @@
 diff -Naurp virtualbox-ose-1.6.4-dfsg.orig/src/VBox/Installer/linux/vboxnet.sh.in virtualbox-ose-1.6.4-dfsg/src/VBox/Installer/linux/vboxnet.sh.in
 --- virtualbox-ose-1.6.4-dfsg.orig/src/VBox/Installer/linux/vboxnet.sh.in       2008-08-06 09:28:41.000000000 +0000
 +++ virtualbox-ose-1.6.4-dfsg/src/VBox/Installer/linux/vboxnet.sh.in    2008-08-06 09:29:40.000000000 +0000
-@@ -34,6 +34,11 @@
+@@ -34,7 +34,12 @@
  TAPDEV="/dev/net/tun"
  NOLSB=%NOLSB%
  
+-[ -f /lib/lsb/init-functions ] || NOLSB=yes
 +# Include virtualbox-ose defaults if available
 +if [ -f /etc/default/virtualbox-ose ] ; then
 +	. /etc/default/virtualbox-ose
 +fi
 +
- [ -f /lib/lsb/init-functions ] || NOLSB=yes
++[ -f /lib/lsb/init-functions ] && NOLSB=
  
  if [ -n "$NOLSB" ]; then
+     if [ -f /etc/redhat-release ]; then
 @@ -162,13 +167,6 @@
      if ! VBoxTunctl -h 2>&1 | grep VBoxTunctl > /dev/null; then
        failure "VBoxTunctl not found"




More information about the Pkg-virtualbox-commits mailing list