Changeset 44071 in vbox for trunk/src/VBox/Installer/linux/scripts
- Timestamp:
- Dec 9, 2012 10:19:53 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82569
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/scripts/VBoxHeadlessXOrg.sh
r44063 r44071 78 78 Options: 79 79 80 -c|--conf-file )Specify an alternative locations for the configuration80 -c|--conf-file Specify an alternative locations for the configuration 81 81 file. The default location is: 82 82 "${CONFIGURATION_FILE}" 83 84 --install Install the service to run at system start-up. 85 86 --uninstall Revert the installation done by the "--install" option. 83 87 84 88 --help|--usage Print this text. … … 186 190 display=`expr ${display} + 1` 187 191 esac 188 done 192 done 189 193 } 190 194 HEADLESS_X_ORG_SERVER_PRE_COMMAND="default_pre_command" … … 263 267 exit 0 264 268 ;; 269 --install) 270 do_install="install" 271 ;; 272 --uninstall) 273 do_install="uninstall" 274 ;; 265 275 *) 266 276 banner … … 272 282 273 283 [ -r "${CONFIGURATION_FILE}" ] && . "${CONFIGURATION_FILE}" 284 285 if [ -n "${do_install}" ]; then 286 cd "${SCRIPT_FOLDER}" 287 SCRIPT_FOLDER=$(pwd)"/" 288 CONFIGURATION_FILE_ESCAPED=$(echo "${CONFIGURATION_FILE}" | sed 's/\([ \%]\)/\\\1/g') 289 if [ "x${do_install}" = "xinstall" ]; then 290 ../helpers/install_service --command "${SCRIPT_FOLDER}"$(basename "${SCRIPT_NAME}") --arguments "--configuration-file ${CONFIGURATION_FILE_ESCAPED}" --service-name "${SERVICE_NAME}" --description "${SERVICE_DESCRIPTION}" --enable 291 else 292 ../helpers/install_service --service-name "${SERVICE_NAME}" --remove 293 fi 294 exit 0 295 fi 274 296 275 297 # Change to the root directory so we don't hold any other open.
Note:
See TracChangeset
for help on using the changeset viewer.