summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index 1b180e5..521fbae 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -356,6 +356,9 @@ export ASSUME_ALWAYS_YES=true
# Disable automatic update
export REPO_AUTOUPDATE=false
+# pkg write progress in EVENT_PIPE
+export EVENT_PIPE="/tmp/pkg-progress.fifo"
+
unset yes
unset action
unset action_pkg
@@ -409,6 +412,13 @@ echo $$ > ${pid_file}
trap _exit 1 2 15 EXIT
+if [ ! -p "${EVENT_PIPE}" ]; then
+ if [ -e "${EVENT_PIPE}" ]; then
+ rm -rf ${EVENT_PIPE}
+ fi
+ mkfifo ${EVENT_PIPE}
+fi
+
case "${action}" in
upgrade)
pkg_upgrade
OpenPOWER on IntegriCloud