Changeset 56859 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jul 8, 2015 12:29:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/routines.sh
r56851 r56859 341 341 ## Service name. 342 342 name="${1}" 343 test -n "${name}" || \ 344 { log "${self}: missing argument" && return 1; } 345 test -x "`which systemctl 2>/dev/null`" && \ 346 { systemctl enable "${name}"; return; } 343 347 if test -x "/etc/rc.d/init.d/${name}" 344 348 then … … 352 356 fi 353 357 get_chkconfig_info "${init_d_path}/init.d/${name}" || return 1 354 if test -x "`which systemctl 2>/dev/null`"355 then356 systemctl enable "${name}"357 358 # Redhat based sysvinit systems 358 elif test -x "`which chkconfig 2>/dev/null`"359 if test -x "`which chkconfig 2>/dev/null`" 359 360 then 360 361 chkconfig --add "${name}" || { … … 399 400 ## Service name. 400 401 name="${1}" 401 test ! -z"${name}" || \402 test -n "${name}" || \ 402 403 { log "${self}: missing argument" && return 1; } 403 404 if test -x "`which systemctl 2>/dev/null`"
Note:
See TracChangeset
for help on using the changeset viewer.