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
a2e63b70
Commit
a2e63b70
authored
Dec 23, 2014
by
Charlie Root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Firmware upgrade is now fully functional
parent
814ee488
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg_upgrade.sh
src/opnsense/scripts/pkg_upgrade.sh
+2
-2
system_firmware_check.php
src/www/system_firmware_check.php
+1
-1
No files found.
src/opnsense/scripts/pkg_upgrade.sh
View file @
a2e63b70
...
...
@@ -2,12 +2,12 @@
pkg_running
=
`
ps
-x
|
grep
"pkg "
|
grep
-v
"grep"
`
if
[
"
$pkg_running
"
==
""
]
;
then
if
[
-f
/tmp/pkg_upgrade.progress
]
if
[
-f
/tmp/pkg_upgrade.progress
]
;
then
# Remove leftovers from previous upgrade first
rm
/tmp/pkg_upgrade.progress
fi
# start pkg upgrade
pkg upgrade
-
n
>
/tmp/pkg_upgrade.progress &
# Need to st this to -y for production, now set to -n for testing purpose
pkg upgrade
-
y
>
/tmp/pkg_upgrade.progress &
echo
'***DONE***'
>>
/tmp/pkg_upgrade.progress
else
echo
'Upgrade already in progress'
...
...
src/www/system_firmware_check.php
View file @
a2e63b70
...
...
@@ -52,7 +52,7 @@ if($_POST['action'] == 'pkg_upgrade') {
$shell_output
=
array
();
$shell
=
new
Core\Shell
();
// execute shell command and collect (only valid) info into named array
$shell
->
exec
(
"/usr/local/opnsense/scripts/pkg_upgrade.sh
&
"
,
false
,
false
,
$shell_output
);
$shell
->
exec
(
"/usr/local/opnsense/scripts/pkg_upgrade.sh"
,
false
,
false
,
$shell_output
);
}
if
(
$_POST
[
'action'
]
==
'update_status'
)
{
...
...
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