Commit 2fd0bf3b authored by Franco Fichtner's avatar Franco Fichtner

firmware: minor style updates

parent eab1e3d4
...@@ -52,7 +52,8 @@ echo ...@@ -52,7 +52,8 @@ echo
echo echo
# if we can update base, we'll do that as well # if we can update base, we'll do that as well
REBOOT= if opnsense-update -c; then
opnsense-update -c -bk && REBOOT=1 if opnsense-update -bk; then
opnsense-update -bk /usr/local/etc/rc.reboot
[ -n "${REBOOT}" ] && /usr/local/etc/rc.reboot fi
fi
...@@ -44,7 +44,7 @@ if [ -z "$pkg_running" ]; then ...@@ -44,7 +44,7 @@ if [ -z "$pkg_running" ]; then
# restart the web server # restart the web server
/usr/local/etc/rc.restart_webgui >> ${PKG_PROGRESS_FILE} /usr/local/etc/rc.restart_webgui >> ${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 -bk; then if opnsense-update -c; then
if opnsense-update -bk >> ${PKG_PROGRESS_FILE}; then if opnsense-update -bk >> ${PKG_PROGRESS_FILE}; then
REBOOT=1 REBOOT=1
fi fi
...@@ -63,7 +63,7 @@ if [ -n "${REBOOT}" ]; then ...@@ -63,7 +63,7 @@ if [ -n "${REBOOT}" ]; then
echo '***REBOOT***' >> ${PKG_PROGRESS_FILE} echo '***REBOOT***' >> ${PKG_PROGRESS_FILE}
# give the frontend some time to figure out that a reboot is coming # give the frontend some time to figure out that a reboot is coming
sleep 10 sleep 10
reboot /usr/local/etc/rc.reboot
else else
echo '***DONE***' >> ${PKG_PROGRESS_FILE} echo '***DONE***' >> ${PKG_PROGRESS_FILE}
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment