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
24ef6de0
Commit
24ef6de0
authored
Jul 29, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: os-update is going to become opnsense-update
parent
8c5991cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
firmware.volt
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
+1
-1
pkg_updatecheck.sh
src/opnsense/scripts/pkg_updatecheck.sh
+14
-1
No files found.
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
View file @
24ef6de0
...
...
@@ -110,7 +110,7 @@ POSSIBILITY OF SUCH DAMAGE.
BootstrapDialog.show({
type:BootstrapDialog.TYPE_WARNING,
title: 'Reboot required',
message: 'Th
is upgrade may require a reboot, when needed the firewall will automatically reboot!
',
message: 'Th
e firewall will be rebooted directly after this firmware update.
',
buttons: [{
label: 'Ok',
action: function(dialogRef){
...
...
src/opnsense/scripts/pkg_updatecheck.sh
View file @
24ef6de0
...
...
@@ -118,7 +118,20 @@ if [ "$pkg_running" == "" ]; then
download_size
=
"none"
fi
upgrade_needs_reboot
=
`
pkg upgrade
-nq
os-update |
grep
UPGRADED |
wc
-l
|
awk
'{print $1;}'
`
# XXX backwards compat
LOCAL
=
opnsense-update
if
pkg query %n os-update
>
/dev/null
;
then
LOCAL
=
os-update
fi
REMOTE
=
opnsense-update
if
pkg rquery %n os-update
>
/dev/null
;
then
REMOTE
=
os-update
fi
# only version change requires reboot
if
[
"
$(
pkg query %v
${
LOCAL
}
)
"
!=
"
$(
pkg rquery %v
${
REMOTE
}
)
"
]
;
then
upgrade_needs_reboot
=
"1"
fi
# First check if there are new packages that need to be installed
for
i
in
$(
cat
$tmp_pkg_output_file
)
;
do
...
...
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