1 --- VirtualBox-7.0.18/src/VBox/Installer/solaris/smf-vboxballoonctrl.sh.orig
2 +++ VirtualBox-7.0.18/src/VBox/Installer/solaris/smf-vboxballoonctrl.sh
7 +VBOXBALLOONCTRL=/opt/VirtualBox/64/VBoxBalloonCtrl
11 - if [ ! -f /opt/VirtualBox/VBoxBalloonCtrl ]; then
12 - echo "ERROR: /opt/VirtualBox/VBoxBalloonCtrl does not exist."
13 + if [ ! -f $VBOXBALLOONCTRL ]; then
14 + echo "ERROR: $VBOXBALLOONCTRL does not exist."
15 return $SMF_EXIT_ERR_CONFIG
18 - if [ ! -x /opt/VirtualBox/VBoxBalloonCtrl ]; then
19 - echo "ERROR: /opt/VirtualBox/VBoxBalloonCtrl is not executable."
20 + if [ ! -x $VBOXBALLOONCTRL ]; then
21 + echo "ERROR: $VBOXBALLOONCTRL is not executable."
22 return $SMF_EXIT_ERR_CONFIG
26 [ -n "$VBOXWATCHDOG_LOGSIZE" ] && PARAMS="$PARAMS -S \"$VBOXWATCHDOG_LOGSIZE\""
27 [ -n "$VBOXWATCHDOG_LOGINTERVAL" ] && PARAMS="$PARAMS -I \"$VBOXWATCHDOG_LOGINTERVAL\""
29 - exec su - "$VBOXWATCHDOG_USER" -c "/opt/VirtualBox/VBoxBalloonCtrl $PARAMS"
30 + exec su - "$VBOXWATCHDOG_USER" -c "$VBOXBALLOONCTRL $PARAMS"
33 if [ $VW_EXIT != 0 ]; then
34 --- VirtualBox-7.0.18/src/VBox/Installer/solaris/smf-vboxautostart.sh.orig
35 +++ VirtualBox-7.0.18/src/VBox/Installer/solaris/smf-vboxautostart.sh
40 +VBOXAUTOSTART=/opt/VirtualBox/64/VBoxAutostart
44 - if [ ! -f /opt/VirtualBox/VBoxAutostart ]; then
45 - echo "ERROR: /opt/VirtualBox/VBoxAutostart does not exist."
46 + if [ ! -f $VBOXAUTOSTART ]; then
47 + echo "ERROR: $VBOXAUTOSTART does not exist."
48 return $SMF_EXIT_ERR_CONFIG
51 - if [ ! -x /opt/VirtualBox/VBoxAutostart ]; then
52 - echo "ERROR: /opt/VirtualBox/VBoxAutostart is not exectuable."
53 + if [ ! -x $VBOXAUTOSTART ]; then
54 + echo "ERROR: $VBOXAUTOSTART is not exectuable."
55 return $SMF_EXIT_ERR_CONFIG
60 for VW_USER in `logins -g $VW_VBOXGROUP | cut -d' ' -f1`
62 - su - "$VW_USER" -c "/opt/VirtualBox/VBoxAutostart --background --start --config \"$VW_CONFIG\" --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\""
63 + su - "$VW_USER" -c "$VBOXAUTOSTART --background --start --config \"$VW_CONFIG\" --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\""
66 if [ $VW_EXIT != 0 ]; then
71 - if [ ! -f /opt/VirtualBox/VBoxAutostart ]; then
72 - echo "ERROR: /opt/VirtualBox/VBoxAutostart does not exist."
73 + if [ ! -f $VBOXAUTOSTART ]; then
74 + echo "ERROR: $VBOXAUTOSTART does not exist."
75 return $SMF_EXIT_ERR_CONFIG
78 - if [ ! -x /opt/VirtualBox/VBoxAutostart ]; then
79 - echo "ERROR: /opt/VirtualBox/VBoxAutostart is not executable."
80 + if [ ! -x $VBOXAUTOSTART ]; then
81 + echo "ERROR: $VBOXAUTOSTART is not executable."
82 return $SMF_EXIT_ERR_CONFIG
87 for VW_USER in `logins -g $VW_VBOXGROUP | cut -d' ' -f1`
89 - su - "$VW_USER" -c "/opt/VirtualBox/VBoxAutostart --stop --config \"$VW_CONFIG\" --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\""
90 + su - "$VW_USER" -c "$VBOXAUTOSTART --stop --config \"$VW_CONFIG\" --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\""
93 if [ $VW_EXIT != 0 ]; then
94 --- VirtualBox-7.0.18/src/VBox/Installer/solaris/smf-vboxwebsrv.sh.orig
95 +++ VirtualBox-7.0.18/src/VBox/Installer/solaris/smf-vboxwebsrv.sh
100 +VBOXROOT=/opt/VirtualBox/64
104 - if [ ! -f /opt/VirtualBox/vboxwebsrv ]; then
105 - echo "ERROR: /opt/VirtualBox/vboxwebsrv does not exist."
106 + if [ ! -f $VBOXROOT/vboxwebsrv ]; then
107 + echo "ERROR: $VBOXROOT/vboxwebsrv does not exist."
108 return $SMF_EXIT_ERR_CONFIG
111 - if [ ! -x /opt/VirtualBox/vboxwebsrv ]; then
112 - echo "ERROR: /opt/VirtualBox/vboxwebsrv is not executable."
113 + if [ ! -x $VBOXROOT/vboxwebsrv ]; then
114 + echo "ERROR: $VBOXROOT/vboxwebsrv is not executable."
115 return $SMF_EXIT_ERR_CONFIG
118 @@ -112,19 +114,19 @@
120 # Set authentication method + password hash
121 if [ -n "$VW_AUTH_LIBRARY" ]; then
122 - su - "$VW_USER" -c "/opt/VirtualBox/VBoxManage setproperty websrvauthlibrary \"$VW_AUTH_LIBRARY\""
123 + su - "$VW_USER" -c "$VBOXROOT/VBoxManage setproperty websrvauthlibrary \"$VW_AUTH_LIBRARY\""
125 echo "Error $? setting webservice authentication library to $VW_AUTH_LIBRARY"
128 if [ -n "$VW_AUTH_PWHASH" ]; then
129 - su - "$VW_USER" -c "/opt/VirtualBox/VBoxManage setextradata global \"VBoxAuthSimple/users/$VW_USER\" \"$VW_AUTH_PWHASH\""
130 + su - "$VW_USER" -c "$VBOXROOT/VBoxManage setextradata global \"VBoxAuthSimple/users/$VW_USER\" \"$VW_AUTH_PWHASH\""
132 echo "Error $? setting webservice password hash"
136 - exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --background --host \"$VW_HOST\" --port \"$VW_PORT\" $VW_SSL $VW_SSL_KEYFILE $VW_SSL_PASSWORDFILE $VW_SSL_CACERT $VW_SSL_CAPATH $VW_SSL_DHFILE $VW_SSL_RANDFILE --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\" --threads \"$VW_THREADS\" --keepalive \"$VW_KEEPALIVE\" --authentication \"$VW_AUTHENTICATION\" $VW_LOGFILE --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\""
137 + exec su - "$VW_USER" -c "$VBOXROOT/vboxwebsrv --background --host \"$VW_HOST\" --port \"$VW_PORT\" $VW_SSL $VW_SSL_KEYFILE $VW_SSL_PASSWORDFILE $VW_SSL_CACERT $VW_SSL_CAPATH $VW_SSL_DHFILE $VW_SSL_RANDFILE --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\" --threads \"$VW_THREADS\" --keepalive \"$VW_KEEPALIVE\" --authentication \"$VW_AUTHENTICATION\" $VW_LOGFILE --logrotate \"$VW_ROTATE\" --logsize \"$VW_LOGSIZE\" --loginterval \"$VW_LOGINTERVAL\""
140 if [ $VW_EXIT != 0 ]; then