Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
4f728e38
Commit
4f728e38
authored
May 15, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(firmware) make reboot required on base upgrade
parent
469fae47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
pkg_upgrade.sh
src/opnsense/scripts/pkg_upgrade.sh
+8
-7
No files found.
src/opnsense/scripts/pkg_upgrade.sh
View file @
4f728e38
...
...
@@ -49,26 +49,27 @@ if [ -z "$pkg_running" ]; then
if
opnsense-update
-c
;
then
echo
"!!!!!!!!!!!! ATTENTION !!!!!!!!!!!"
>>
${
PKG_PROGRESS_FILE
}
echo
"A kernel/base upgrade is required."
>>
${
PKG_PROGRESS_FILE
}
echo
"Please trigger a firmware upgrade"
>>
${
PKG_PROGRESS_FILE
}
echo
"via root console menu option '12'."
>>
${
PKG_PROGRESS_FILE
}
echo
"try to perform immediately"
>>
${
PKG_PROGRESS_FILE
}
echo
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
>>
${
PKG_PROGRESS_FILE
}
#
if opnsense-update >> ${PKG_PROGRESS_FILE}; then
#
REBOOT=1
#
fi
if
opnsense-update
>>
${
PKG_PROGRESS_FILE
}
;
then
REBOOT
=
1
fi
fi
elif
[
"
$package
"
==
"pkg"
]
;
then
pkg upgrade
-y
$package
>>
${
PKG_PROGRESS_FILE
}
echo
"*** PLEASE CHECK FOR MORE UPGRADES"
else
echo
"Cannot update
$package
"
>>
${
PKG_PROGRESS_FILE
}
fi
echo
'***CHECKING FOR MORE UPGRADES, CAN TAKE 30 SECONDS***'
>>
${
PKG_PROGRESS_FILE
}
/usr/local/opnsense/scripts/pkg_updatecheck.sh
else
echo
'Upgrade already in progress'
>>
${
PKG_PROGRESS_FILE
}
fi
if
[
-n
"
${
REBOOT
}
"
]
;
then
echo
'***REBOOT***'
>>
${
PKG_PROGRESS_FILE
}
# give the frontend some time to figure out that a reboot is coming
sleep
10
reboot
else
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment