From dba3b0cfcc79553a3bfd1081eb43bcf993312476 Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Sat, 14 Sep 2019 12:11:50 +0200 Subject: [PATCH] Delete 50-landscape-sysinfo --- menu/motd/50-landscape-sysinfo | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 menu/motd/50-landscape-sysinfo diff --git a/menu/motd/50-landscape-sysinfo b/menu/motd/50-landscape-sysinfo deleted file mode 100644 index ba3a9db1..00000000 --- a/menu/motd/50-landscape-sysinfo +++ /dev/null @@ -1,19 +0,0 @@ - -#!/bin/sh -# -# NOTE UBU only -# - -cores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null) -[ "$cores" -eq "0" ] && cores=1 -threshold="${cores:-1}.0" -if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < $threshold" | bc) -eq 1 ]; then - echo - echo -n " System information as of " - /bin/date - echo - /usr/bin/landscape-sysinfo -else - echo - echo " System information disabled due to load higher than $threshold" -fi