hardvk0 Posted February 13, 2016 Share Posted February 13, 2016 I have a "Banana PRO"One USB disk, 2TB with three partitions in ext4, the first partition is mounted (hdb1), the other two are not mounted.One USB disk, 4TB with a single ext4 partition mounted (hdc1).One SATA SSD disk with a single ext4 partition unmounted (hda1).Several aesthetic considerations:After the upgrade, reboot and login, the welcome screen and 100% battery!!! Hurrah!!!It seems that the MMC is 9% occupancy and ... oh! my hdb disk has only one partition? ah no, only reads hdb1. And the other two disks? I have two mounted partitions but only shows one.Turn off the system with the poweroff order and boot from the power button again, the battery is down to 97%? 30 minutes later still 97% ... I think we will have to discharge the battery to calibrate.It is a bit ugly to show the battery charge on two lines. ____| __ ) __ _ _ __ __ _ _ __ __ _| _ \ / _` | '_ \ / _` | '_ \ / _` || |_) | (_| | | | | (_| | | | | (_| ||____/ \__,_|_| |_|\__,_|_| |_|\__,_|Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 4.4.1-sunxiSystem load: 0.10 Up time: 2 minMemory usage: 4 % of 997Mb IP: 192.168.187.89CPU temp: 38°CUsage of /: 9% of 15G storage/: 88% of 1.8T Battery: 97% chargingLast login: Sat Feb 13 01:49:50 2016 from remote.intranetroot@mybanana:~# Link to comment Share on other sites More sharing options...
Igor Posted February 13, 2016 Share Posted February 13, 2016 Well, storage monitoring was meant to be a choice - to monitor one / two mounts. I'll develop a user config for next, since this file is overwritten on every upgrade. It is a bit ugly to show the battery charge on two lines. Who uses 80 column mode ? OK, Will be fixed in next. Battery. Link to comment Share on other sites More sharing options...
hardvk0 Posted February 13, 2016 Author Share Posted February 13, 2016 Well, I do not know exactly how the script works. I propose an idea, find out first mounted partitions and display the data later.df -l excluding tmpfs, for example, do that.I do not know programming, I'm too old for that but certainly with your magic you know how. A query, how do I show the data with the session already started? Link to comment Share on other sites More sharing options...
Igor Posted February 13, 2016 Share Posted February 13, 2016 This is the script. It's not complicated ... https://github.com/igorpecovnik/lib/blob/master/scripts/update-motd.d/30-sysinfo No need to fix it by yourself. We will find a way to make this as simple as possible to adjust to user desires. I made the basics, design and beauty of the output is a subjective manner. Always An idea / txt output how to shape date is enough, perhaps here where those changes begin: http://forum.armbian.com/index.php/topic/602-new-motd-for-ubuntudebian/ Link to comment Share on other sites More sharing options...
Recommended Posts