Changeset 7146 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Feb 26, 2008 3:11:22 PM (17 years ago)
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r7143 r7146 57 57 [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox 58 58 59 if [ -z "$NOLSB" 59 if [ -z "$NOLSB" ]; then 60 60 . /lib/lsb/init-functions 61 61 fail_msg() { … … 95 95 . /sbin/functions.sh 96 96 fail_msg() { 97 eerror $197 eerror "$1" 98 98 } 99 99 succ_msg() { 100 eend $?100 eend "$?" 101 101 } 102 102 begin_msg() { 103 ebegin $1103 ebegin "$1" 104 104 } 105 105 if [ "`which $0`" = "/sbin/rc" ]; then … … 119 119 [ -z "${1:-}" ] && return 1 120 120 if [ -z "${2:-}" ]; then 121 echo -n "$1:" 122 return 121 echo -n "$1" 122 else 123 echo -n "$1: $2" 123 124 fi 124 echo -n "$1: $2"125 125 } 126 126 fi -
trunk/src/VBox/Installer/linux/vboxnet.sh.in
r7143 r7146 65 65 echo_failure 66 66 echo 67 echo " ($1)"67 echo " ($1)" 68 68 } 69 69 succ_msg() { … … 76 76 rc_failed 1 77 77 rc_status -v 78 echo " ($1)"78 echo " ($1)" 79 79 } 80 80 succ_msg() { … … 85 85 . /sbin/functions.sh 86 86 fail_msg() { 87 eerror $187 eerror "$1" 88 88 } 89 89 succ_msg() { 90 eend $?90 eend "$?" 91 91 } 92 92 begin_msg() { 93 ebegin $193 ebegin "$1" 94 94 } 95 95 if [ "`which $0`" = "/sbin/rc" ]; then … … 99 99 fail_msg() { 100 100 echo " ...failed!" 101 echo " ($1)"101 echo " ($1)" 102 102 } 103 103 succ_msg() { … … 109 109 [ -z "${1:-}" ] && return 1 110 110 if [ -z "${2:-}" ]; then 111 echo -n "$1:" 112 return 111 echo -n "$1" 112 else 113 echo -n "$1: $2" 113 114 fi 114 echo -n "$1: $2"115 115 } 116 116 fi … … 119 119 failure() 120 120 { 121 fail_msg $1121 fail_msg "$1" 122 122 # never return with exit code != 0 123 123 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.