Updates for FreeBSD
This commit is contained in:
parent
366cce3858
commit
85c892cc12
@ -373,7 +373,7 @@ void disk_stat(void)
|
||||
mvprintw(i+8, 1, "%8lu %8lu ", size, used);
|
||||
set_color(WHITE, BLACK);
|
||||
printf("%c ", sign);
|
||||
if (strstr(type, "iso") == NULL) {
|
||||
if ((strstr(type, "iso") == NULL) && (strstr(type, "9660") == NULL)) {
|
||||
if (avail <= CFG.freespace)
|
||||
set_color(LIGHTRED, BLACK);
|
||||
else if (avail <= (CFG.freespace * 4))
|
||||
|
@ -244,7 +244,8 @@ void update_diskstat(void)
|
||||
*/
|
||||
tmp->ro = (strstr(tmp->fstype, "iso") != NULL);
|
||||
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
Syslog('-', "%s %d", tmp->mountpoint, sfs.f_flags);
|
||||
tmp->ro = (sfs.f_flags & MNT_RDONLY);
|
||||
// Syslog('-', "%s %d %d", tmp->mountpoint, sfs.f_flags, sfs.f_flags & MNT_RDONLY);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user