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
45c905bc
Commit
45c905bc
authored
May 22, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: oddly enough, this reversed order is the correct one
(cherry picked from commit
f05b35d9
)
parent
2e0f87a0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
install.sh
src/opnsense/scripts/firmware/install.sh
+3
-3
lock.sh
src/opnsense/scripts/firmware/lock.sh
+1
-1
reinstall.sh
src/opnsense/scripts/firmware/reinstall.sh
+3
-3
remove.sh
src/opnsense/scripts/firmware/remove.sh
+3
-3
unlock.sh
src/opnsense/scripts/firmware/unlock.sh
+1
-1
upgrade.sh
src/opnsense/scripts/firmware/upgrade.sh
+4
-4
No files found.
src/opnsense/scripts/firmware/install.sh
View file @
45c905bc
...
...
@@ -37,7 +37,7 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO INSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
2>&1
pkg autoremove
-y
>>
${
PKG_PROGRESS_FILE
}
2>&1
pkg clean
-ya
>>
${
PKG_PROGRESS_FILE
}
2>&1
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/lock.sh
View file @
45c905bc
...
...
@@ -37,5 +37,5 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO LOCK:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg lock
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg lock
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
2>&1
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/reinstall.sh
View file @
45c905bc
...
...
@@ -37,7 +37,7 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO REINSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-yf
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-yf
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
2>&1
pkg autoremove
-y
>>
${
PKG_PROGRESS_FILE
}
2>&1
pkg clean
-ya
>>
${
PKG_PROGRESS_FILE
}
2>&1
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/remove.sh
View file @
45c905bc
...
...
@@ -37,7 +37,7 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO REINSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg remove
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg remove
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
2>&1
pkg autoremove
-y
>>
${
PKG_PROGRESS_FILE
}
2>&1
pkg clean
-ya
>>
${
PKG_PROGRESS_FILE
}
2>&1
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/unlock.sh
View file @
45c905bc
...
...
@@ -37,5 +37,5 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO UNLOCK:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg unlock
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg unlock
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
2>&1
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/upgrade.sh
View file @
45c905bc
...
...
@@ -41,17 +41,17 @@ echo "***GOT REQUEST TO UPGRADE: $PACKAGE***" >> ${PKG_PROGRESS_FILE}
if
[
"
$PACKAGE
"
==
"all"
]
;
then
# update all installed packages
opnsense-update
-p
2>&1
>>
${
PKG_PROGRESS_FILE
}
opnsense-update
-p
>>
${
PKG_PROGRESS_FILE
}
2>&1
# restart the web server
/usr/local/etc/rc.restart_webgui
2>&1
>>
${
PKG_PROGRESS_FILE
}
/usr/local/etc/rc.restart_webgui
>>
${
PKG_PROGRESS_FILE
}
2>&1
# if we can update base, we'll do that as well
if
opnsense-update
-c
;
then
if
opnsense-update
-bk
2>&1
>>
${
PKG_PROGRESS_FILE
}
;
then
if
opnsense-update
-bk
>>
${
PKG_PROGRESS_FILE
}
2>&1
;
then
REBOOT
=
1
fi
fi
elif
[
"
$PACKAGE
"
==
"pkg"
]
;
then
pkg upgrade
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg upgrade
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
2>&1
echo
"*** PLEASE CHECK FOR MORE UPGRADES"
else
echo
"Cannot update
$PACKAGE
"
>>
${
PKG_PROGRESS_FILE
}
...
...
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