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
c598f2c8
Commit
c598f2c8
authored
May 17, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: allow stderr to reach the GUI progress window
parent
4fc57390
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 @
c598f2c8
...
@@ -37,7 +37,7 @@ fi
...
@@ -37,7 +37,7 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO INSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO INSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
2>&1
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/lock.sh
View file @
c598f2c8
...
@@ -37,5 +37,5 @@ fi
...
@@ -37,5 +37,5 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO LOCK:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO LOCK:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg lock
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
pkg lock
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/reinstall.sh
View file @
c598f2c8
...
@@ -37,7 +37,7 @@ fi
...
@@ -37,7 +37,7 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO REINSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO REINSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-yf
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
pkg
install
-yf
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
2>&1
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/remove.sh
View file @
c598f2c8
...
@@ -37,7 +37,7 @@ fi
...
@@ -37,7 +37,7 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO REINSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO REINSTALL:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg remove
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
pkg remove
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
>>
${
PKG_PROGRESS_FILE
}
pkg autoremove
-y
2>&1
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
>>
${
PKG_PROGRESS_FILE
}
pkg clean
-ya
2>&1
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/unlock.sh
View file @
c598f2c8
...
@@ -37,5 +37,5 @@ fi
...
@@ -37,5 +37,5 @@ fi
:
>
${
PKG_PROGRESS_FILE
}
:
>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO UNLOCK:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
echo
"***GOT REQUEST TO UNLOCK:
$PACKAGE
***"
>>
${
PKG_PROGRESS_FILE
}
pkg unlock
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
pkg unlock
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
echo
'***DONE***'
>>
${
PKG_PROGRESS_FILE
}
src/opnsense/scripts/firmware/upgrade.sh
View file @
c598f2c8
...
@@ -41,17 +41,17 @@ echo "***GOT REQUEST TO UPGRADE: $PACKAGE***" >> ${PKG_PROGRESS_FILE}
...
@@ -41,17 +41,17 @@ echo "***GOT REQUEST TO UPGRADE: $PACKAGE***" >> ${PKG_PROGRESS_FILE}
if
[
"
$PACKAGE
"
==
"all"
]
;
then
if
[
"
$PACKAGE
"
==
"all"
]
;
then
# update all installed packages
# update all installed packages
opnsense-update
-p
>>
${
PKG_PROGRESS_FILE
}
opnsense-update
-p
2>&1
>>
${
PKG_PROGRESS_FILE
}
# restart the web server
# restart the web server
/usr/local/etc/rc.restart_webgui
>>
${
PKG_PROGRESS_FILE
}
/usr/local/etc/rc.restart_webgui
2>&1
>>
${
PKG_PROGRESS_FILE
}
# if we can update base, we'll do that as well
# if we can update base, we'll do that as well
if
opnsense-update
-c
;
then
if
opnsense-update
-c
;
then
if
opnsense-update
-bk
>>
${
PKG_PROGRESS_FILE
}
;
then
if
opnsense-update
-bk
2>&1
>>
${
PKG_PROGRESS_FILE
}
;
then
REBOOT
=
1
REBOOT
=
1
fi
fi
fi
fi
elif
[
"
$PACKAGE
"
==
"pkg"
]
;
then
elif
[
"
$PACKAGE
"
==
"pkg"
]
;
then
pkg upgrade
-y
$PACKAGE
>>
${
PKG_PROGRESS_FILE
}
pkg upgrade
-y
$PACKAGE
2>&1
>>
${
PKG_PROGRESS_FILE
}
echo
"*** PLEASE CHECK FOR MORE UPGRADES"
echo
"*** PLEASE CHECK FOR MORE UPGRADES"
else
else
echo
"Cannot update
$PACKAGE
"
>>
${
PKG_PROGRESS_FILE
}
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