opnsense-ports/sysutils/byobu/files/patch-usr_lib_byobu_load__average
Franco Fichtner da40f9760e */*: sync with upstream
Taken from: HardenedBSD
2018-06-17 14:42:30 +02:00

18 lines
549 B
Text

--- usr/lib/byobu/load_average.orig 2016-04-07 22:05:52 UTC
+++ usr/lib/byobu/load_average
@@ -20,12 +20,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__load_average_detail() {
- cat /proc/loadavg
+ cat /compat/linux/proc/loadavg
}
__load_average() {
- if [ -r "/proc/loadavg" ]; then
- read one five fifteen other < /proc/loadavg
+ if [ -r "/compat/linux/proc/loadavg" ]; then
+ read one five fifteen other < /compat/linux/proc/loadavg
else
one=$(uptime | sed -e "s/.*://" | awk '{print $1}')
fi