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
b73c0e7d
Commit
b73c0e7d
authored
Jul 09, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: major upgrade button for #1707
parent
5198b7d4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
plist
plist
+1
-0
firmware-message
src/opnsense/firmware-message
+1
-0
FirmwareController.php
.../app/controllers/OPNsense/Core/Api/FirmwareController.php
+6
-4
firmware.volt
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
+10
-0
No files found.
plist
View file @
b73c0e7d
...
...
@@ -313,6 +313,7 @@
/usr/local/opnsense/contrib/simplepie/library/SimplePie/gzdecode.php
/usr/local/opnsense/contrib/simplepie/phpunit.xml.dist
/usr/local/opnsense/contrib/tzdata/iso3166.tab
/usr/local/opnsense/firmware-message
/usr/local/opnsense/firmware-product
/usr/local/opnsense/firmware-upgrade
/usr/local/opnsense/mvc/app/cache/README
...
...
src/opnsense/firmware-message
0 → 100644
View file @
b73c0e7d
A placeholder for the 17.7 upgrade message.
src/opnsense/mvc/app/controllers/OPNsense/Core/Api/FirmwareController.php
View file @
b73c0e7d
...
...
@@ -266,12 +266,14 @@ class FirmwareController extends ApiControllerBase
{
$backend
=
new
Backend
();
$response
=
array
();
if
(
$this
->
request
->
hasPost
(
"upgrade"
))
{
if
(
$this
->
request
->
hasPost
(
'upgrade'
))
{
$response
[
'status'
]
=
'ok'
;
if
(
$this
->
request
->
getPost
(
"upgrade"
)
==
"pkg"
)
{
$action
=
"firmware upgrade pkg"
;
if
(
$this
->
request
->
getPost
(
'upgrade'
)
==
'pkg'
)
{
$action
=
'firmware upgrade pkg'
;
}
elseif
(
$this
->
request
->
getPost
(
'upgrade'
)
==
'maj'
)
{
$action
=
'firmware upgrade maj'
;
}
else
{
$action
=
"firmware upgrade all"
;
$action
=
'firmware upgrade all'
;
}
$response
[
'msg_uuid'
]
=
trim
(
$backend
->
configdRun
(
$action
,
true
));
}
else
{
...
...
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
View file @
b73c0e7d
...
...
@@ -478,6 +478,16 @@ POSSIBILITY OF SUCH DAMAGE.
title
:
"{{ lang._('End-of-Life Notice') }}"
,
message
:
$
(
'#message'
)
.
html
(),
buttons
:
[{
<?
php
if
(
file_exists
(
'/usr/local/opnsense/firmware-upgrade'
))
:
?>
label: "{{ lang._('Upgrade') }}",
action: function(dialogRef){
dialogRef.close();
$.upgrade_needs_reboot = 1;
$.upgrade_action = 'maj';
upgrade_ui();
}
},{
<?php
endif
?>
label: "{{ lang._('Close') }}",
action: function(dialogRef){
dialogRef.close();
...
...
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