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
53260704
Commit
53260704
authored
Jul 20, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: core_version is unused and prevents opnsense-devel updates
parent
2d78b60f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
pkg_updatecheck.sh
src/opnsense/scripts/pkg_updatecheck.sh
+1
-9
No files found.
src/opnsense/scripts/pkg_updatecheck.sh
View file @
53260704
...
...
@@ -33,7 +33,6 @@
# repository: error|ok
# last_ckeck: <date_time_stamp>
# updates: <#num_of_updates>
# core_version: unknown|<current core version>
# download_size: none|<size_of_total_downloads>
# extra_space_required: none|<size_of_total_extra_space_required>
# new_packages: array with { name: <package_name>, version: <package_version> }
...
...
@@ -47,7 +46,6 @@ connection="error"
repository
=
"error"
upgrade_needs_reboot
=
"0"
updates
=
""
core_version
=
""
pkg_running
=
""
packes_output
=
""
last_check
=
"unknown"
...
...
@@ -72,9 +70,6 @@ if [ "$pkg_running" == "" ]; then
pkg_running
=
"started"
# Set running state to arbitrary value
timer
=
$timeout
# Reset our timer
# Lets get coreversion first
core_version
=
`
pkg info opnsense |
grep
'Version'
|
awk
-F
'[:]'
'{print $2}'
`
# Changed to reflect current installed core version
# Timeout loop for pkg update -f
while
[
"
$pkg_running
"
!=
""
]
&&
[
$timer
-ne
0
]
;
do
...
...
@@ -208,9 +203,6 @@ if [ "$pkg_running" == "" ]; then
itemcount
=
`
echo
$linecount
+ 4 | bc
`
fi
done
if
[
"
$core_version
"
==
""
]
;
then
core_version
=
"unknown"
fi
fi
fi
else
...
...
@@ -232,7 +224,7 @@ if [ "$pkg_running" == "" ]; then
# Get date/timestamp
last_check
=
`
date
`
# Write our json structure to disk
echo
"{
\"
connection
\"
:
\"
$connection
\"
,
\"
repository
\"
:
\"
$repository
\"
,
\"
last_check
\"
:
\"
$last_check
\"
,
\"
updates
\"
:
\"
$updates
\"
,
\"
core_version
\"
:
\"
$core_version
\"
,
\"
download_size
\"
:
\"
$download_size
\"
,
\"
extra_space_required
\"
:
\"
$required_space
\"
,
\"
new_packages
\"
:[
$packages_new
],
\"
reinstall_packages
\"
:[
$packages_reinstall
],
\"
upgrade_packages
\"
:[
$packages_upgraded
],
\"
upgrade_needs_reboot
\"
:
\"
$upgrade_needs_reboot
\"
}"
echo
"{
\"
connection
\"
:
\"
$connection
\"
,
\"
repository
\"
:
\"
$repository
\"
,
\"
last_check
\"
:
\"
$last_check
\"
,
\"
updates
\"
:
\"
$updates
\"
,
\"
download_size
\"
:
\"
$download_size
\"
,
\"
extra_space_required
\"
:
\"
$required_space
\"
,
\"
new_packages
\"
:[
$packages_new
],
\"
reinstall_packages
\"
:[
$packages_reinstall
],
\"
upgrade_packages
\"
:[
$packages_upgraded
],
\"
upgrade_needs_reboot
\"
:
\"
$upgrade_needs_reboot
\"
}"
else
# pkg is already running, quitting
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