always write to /etc/init.d/
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
063b4bc98b
commit
054f48024d
|
@ -72,10 +72,10 @@ func mainTab(n *gui.Node) {
|
|||
// systemctl enable serial-getty@ttyS0.service
|
||||
// cp ttyS0.conf /etc/init/
|
||||
foo := []byte(ttyS0)
|
||||
ioutil.WriteFile("/etc/init/ttyS0.conf", foo, 0644)
|
||||
ioutil.WriteFile("/etc/init.d/ttyS0", foo, 0644)
|
||||
myGui.CloseToolkit("gocui")
|
||||
doCmd("ls -l")
|
||||
doCmd("cat /etc/init/ttyS0.conf")
|
||||
doCmd("cat /etc/init.d/ttyS0")
|
||||
doCmd("systemctl enable serial-getty@ttyS0.service")
|
||||
os.Exit(0)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue