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
34cea240
Commit
34cea240
authored
Nov 20, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: improve the major upgrade dialog
parent
8c25dd18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
rc.initial.firmware
src/etc/rc.initial.firmware
+15
-6
No files found.
src/etc/rc.initial.firmware
View file @
34cea240
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
set
-e
set
-e
UPGRADE
=
"/usr/local/opnsense/firmware-upgrade"
UPGRADE
=
"/usr/local/opnsense/firmware-upgrade"
PROMPT
=
"[y/N]"
NAME
=
"y"
ARGS
=
ARGS
=
if
[
-f
${
UPGRADE
}
]
;
then
if
[
-f
${
UPGRADE
}
]
;
then
...
@@ -37,18 +39,25 @@ if [ -f ${UPGRADE} ]; then
...
@@ -37,18 +39,25 @@ if [ -f ${UPGRADE} ]; then
echo
echo
echo
"Make sure you have read the release notes and migration guide before"
echo
"Make sure you have read the release notes and migration guide before"
echo
"attempting this upgrade. Around 200MB will need to be downloaded and"
echo
"attempting this upgrade. Around 200MB will need to be downloaded and"
echo
-n
"require 500MB of free space. Proceed with this action? [y/N]: "
echo
"require 500MB of free space. Continue with this major upgrade by"
echo
"typing the major upgrade version number displayed above."
echo
ARGS
=
"upgrade
${
NAME
}
"
PROMPT
=
"[y/
${
NAME
}
/N]"
else
echo
"This will automatically fetch all available updates, apply them,"
echo
-n
"and reboot if necessary. Proceed with this action? [y/N]: "
fi
fi
read
YN
echo
"This will automatically fetch all available updates, apply them,"
echo
"and reboot if necessary."
echo
read
-p
"Proceed with this action?
${
PROMPT
}
: "
YN
case
${
YN
}
in
case
${
YN
}
in
[
yY]
)
[
yY]
)
;;
;;
${
NAME
}
)
ARGS
=
"upgrade
${
NAME
}
"
;;
*
)
*
)
exit
0
exit
0
;;
;;
...
...
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