always write to /etc/init.d/

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-22 12:56:00 -05:00
parent 063b4bc98b
commit 054f48024d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
})