source: pkg/boss/main/virtualbox-ose/trunk/debian/patches/08-init-lsb.dpatch @ 4946

Revision 4946, 1.4 KB checked in by alanbach-guest, 5 years ago (diff)
  • Sync'd with Debian 2.1.2-dfsg-1
Line 
1#!/bin/sh /usr/share/dpatch/dpatch-run
2## 08-init-lsb.dpatch by Michael Meskes <meskes@debian.org>
3##
4## DP: Make initscript lsb cmpliant.
5
6@DPATCH@
7
8diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Installer/linux/vboxdrv.sh.in virtualbox-ose-2.1.0-dfsg/src/VBox/Installer/linux/vboxdrv.sh.in
9--- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Installer/linux/vboxdrv.sh.in       2008-05-09 09:28:11.000000000 +0000
10+++ virtualbox-ose-2.1.0-dfsg/src/VBox/Installer/linux/vboxdrv.sh.in    2008-05-09 09:28:41.000000000 +0000
11@@ -19,8 +19,8 @@
12 #
13 ### BEGIN INIT INFO
14 # Provides:       vboxdrv
15-# Required-Start: $syslog
16-# Required-Stop:
17+# Required-Start: $remote_fs $network
18+# Required-Stop:  $remote_fs
19 # Default-Start:  2 3 4 5
20 # Default-Stop:   0 1 6
21 # Short-Description: VirtualBox Linux kernel module
22@@ -32,7 +32,7 @@
23 LOG="/var/log/vbox-install.log"
24 NOLSB=%NOLSB%
25 
26-[ -f /lib/lsb/init-functions ] || NOLSB=yes
27+[ -f /lib/lsb/init-functions ] && NOLSB=
28 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg
29 
30 if [ -n "$INSTALL_DIR" ]; then
31@@ -60,14 +60,13 @@
32 if [ -z "$NOLSB" ]; then
33     . /lib/lsb/init-functions
34     fail_msg() {
35-        echo ""
36-        log_failure_msg "$1"
37+       log_action_end_msg 1
38     }
39     succ_msg() {
40-        log_success_msg " done."
41+        log_action_end_msg 0
42     }
43     begin_msg() {
44-        log_daemon_msg "$@"
45+       log_action_begin_msg $1
46     }
47 else
48     if [ "$system" = "redhat" ]; then
Note: See TracBrowser for help on using the repository browser.