Skip to content

Commit f6abe4c

Browse files
system() added uuid freebsd
1 parent c1d26c9 commit f6abe4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function system(callback) {
122122
}
123123
if (!result.uuid && (_freebsd || _openbsd || _netbsd)) {
124124
try {
125-
const disksById = execSync('sysctl -i kern.hostid kern.hostuuid', util.execOptsLinux).toString();
125+
const lines = execSync('sysctl -i kern.hostid', util.execOptsLinux).toString().split('\n');
126126
result.uuid = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
127127
} catch (e) {
128128
util.noop();

0 commit comments

Comments
 (0)