Page 1 of 1

Customize space for external HDD (Banner)

Posted: Mon Mar 25, 2019 1:47 am
by esturniolo
Hi all.
There is a way to customize the banner script to show the free space for an external USB device storage?

Code: Select all

/dev/sdX
For example

Code: Select all

/dev/sdb1
It's great when you have installed something like Pydio, Nextcloud, etc...

Thanks

Re: Customize space for external HDD (Banner)

Posted: Mon Mar 25, 2019 4:50 am
by MichaIng
You can use the custom banner entry option and on the input field enter:
df -h --output=avail /dev/sdb1 | mawk 'NR==2 {print $1}'

Re: Customize space for external HDD (Banner)

Posted: Tue Mar 26, 2019 9:24 pm
by esturniolo
Yeah!
Thanks MichaIng!