Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f159c3

Browse files
Additions: Linux: Installer: Add extra path for startup scripts to be installed to (for old Linux SystemV guests).
svn:sync-xref-src-repo-rev: r171079
1 parent 61ef636 commit 4f159c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/VBox/Installer/linux/routines.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: routines.sh 110684 2025-08-11 17:18:47Z klaus.espenlaub@oracle.com $
1+
# $Id: routines.sh 111517 2025-10-29 15:15:28Z vadim.galitsyn@oracle.com $
22
# Oracle VirtualBox
33
# VirtualBox installer shell routines
44
#
@@ -222,6 +222,9 @@ install_init_script()
222222
elif test -d /etc/init.d; then
223223
cp "${script}" "/etc/init.d/${name}" &&
224224
chmod 755 "/etc/init.d/${name}"
225+
elif test -d /etc/rc.d; then
226+
cp "${script}" "/etc/rc.d/rc.${name}" &&
227+
chmod 755 "/etc/rc.d/rc.${name}"
225228
else
226229
{ echo "${self}: error: unknown init type" >&2; return 1; }
227230
fi
@@ -240,6 +243,7 @@ remove_init_script()
240243
rm -f /lib/systemd/system/"$name".service /usr/lib/systemd/system/"$name".service
241244
rm -f "/etc/rc.d/init.d/$name"
242245
rm -f "/etc/init.d/$name"
246+
rm -f "/etc/rc.d/rc.$name"
243247
}
244248
245249
## Tell systemd services have been installed or removed. Should not be done
@@ -279,6 +283,8 @@ do_sysvinit_action()
279283
"/etc/rc.d/init.d/${name}" "${action}" quiet
280284
elif test -x "/etc/init.d/${name}"; then
281285
"/etc/init.d/${name}" "${action}" quiet
286+
elif test -x "/etc/rc.d/${name}"; then
287+
"/etc/rc.d/rc.${name}" "${action}" quiet
282288
fi
283289
}
284290

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /