lrosenman
Guru
- Joined
- Oct 17, 2014
- Messages
- 221
- Reaction score
- 30
On my NUC, the first 2 mountpoints are not the root:
The pbxstatus script thinks it should use the first one, but that's wrong.
I changed the script to use /$ instead of just /, and it's happier:
Could this be updated in the distro(s)?
(I'm on IPBX for WAZO).
Code:
root@wazo:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 1.6G 9.0M 1.6G 1% /run
/dev/dm-0 102G 3.5G 93G 4% /
tmpfs 3.9G 4.0K 3.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda2 237M 83M 142M 37% /boot
/dev/sda1 511M 132K 511M 1% /boot/efi
The pbxstatus script thinks it should use the first one, but that's wrong.
I changed the script to use /$ instead of just /, and it's happier:
Code:
root@wazo:~# grep DISK /usr/local/sbin/pbxstatus
DISK=`df -h | tr -s ' ' |grep " /$" | head -n 1 | cut -f 4 -d " "`B
Could this be updated in the distro(s)?
(I'm on IPBX for WAZO).