summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2001-12-12 10:12:20 +0000
committerroam <roam@FreeBSD.org>2001-12-12 10:12:20 +0000
commit004324029585ee7ed1e015a2fcc98a9dde5b99af (patch)
treeb583faf3b08432615e55370d50b639667ff58fb2 /etc/rc
parente351feb64694ca3513d50d4373275fd43644ef19 (diff)
downloadFreeBSD-src-004324029585ee7ed1e015a2fcc98a9dde5b99af.zip
FreeBSD-src-004324029585ee7ed1e015a2fcc98a9dde5b99af.tar.gz
Set the script_name_sep variable to a safe value if it is not
already set (e.g. a failed/skipped mergemaster run during an upgrade). Without this, if script_name_sep was not set in the rc.conf files, local scripts will not be executed on startup or shutdown. PR: misc/32687 Submitted by: Nicholas Paufler <echofox@discordia.ca> (the problem) Sheldon Hearn (the idea behind the fix) Reviewed by: sheldonh MFC after: 1 week
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 0ffbc40..9c17eb6 100644
--- a/etc/rc
+++ b/etc/rc
@@ -813,6 +813,9 @@ case ${local_startup} in
*)
echo -n 'Local package initialization:'
slist=""
+ if [ -z "${script_name_sep}" ]; then
+ script_name_sep=" "
+ fi
for dir in ${local_startup}; do
if [ -d "${dir}" ]; then
for script in ${dir}/*.sh; do
OpenPOWER on IntegriCloud