Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD(FreeNAS) support? #30

Open
filipenanclarez opened this issue Nov 8, 2019 · 1 comment
Open

FreeBSD(FreeNAS) support? #30

filipenanclarez opened this issue Nov 8, 2019 · 1 comment

Comments

@filipenanclarez
Copy link

Your counters is exactly what i need. Works perfectly on CentOS.

But i try to use in FreeBSD and get a error.

Is possible make this avaliable to FreeBSD?

Or can tell me how can'i do it?

@filipenanclarez
Copy link
Author

filipenanclarez commented Nov 9, 2019

Using version without python, in the following line ...

UserParameter=custom.vfs.dev.discovery,DEVS=grep -E -v 'fd|loop|ram|sr|major|^$|dm-' /proc/partitions | awk '{if($2==0||($2%8==0))print $4}'|sed 's/\//\!/g';POSITION=1;echo "{";echo " "data":[";for DEV in $DEVS;do if [ $POSITION -gt 1 ];then echo -n ",";fi;echo -n " { "{#DEVICENAME}": "$DEV"}";POSITION=expr $POSITION + 1;done;echo "";echo " ]";echo "}"

... i try to change '/proc/partitions' with 'gpart show -p' but is much complex to me make it work ;(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant