Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
32e22e3b
Commit
32e22e3b
authored
Mar 25, 2021
by
YPJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改序列号为/etc/miner_sn
parent
514e2445
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cmd.go
pkg/cmd/cmd.go
+1
-1
No files found.
pkg/cmd/cmd.go
View file @
32e22e3b
...
@@ -89,7 +89,7 @@ func GetLocalUUID() string {
...
@@ -89,7 +89,7 @@ func GetLocalUUID() string {
}
}
func
GetLocalUUID2
()
string
{
func
GetLocalUUID2
()
string
{
cmd
:=
exec
.
Command
(
"cat"
,
"/etc/m
achine-id
"
)
cmd
:=
exec
.
Command
(
"cat"
,
"/etc/m
iner_sn
"
)
var
buf
,
errbuf
bytes
.
Buffer
var
buf
,
errbuf
bytes
.
Buffer
cmd
.
Stdout
=
&
buf
cmd
.
Stdout
=
&
buf
cmd
.
Stderr
=
&
errbuf
cmd
.
Stderr
=
&
errbuf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment