setup grub serial settings if ttyS0
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
327ce420b5
commit
9d4a97f8af
|
@ -88,6 +88,9 @@ func mainTab(n *gui.Node) {
|
||||||
doCmd("cat /etc/init.d/ttyS0")
|
doCmd("cat /etc/init.d/ttyS0")
|
||||||
doCmd("systemctl enable serial-getty@ttyS0.service")
|
doCmd("systemctl enable serial-getty@ttyS0.service")
|
||||||
doCmd("service serial-getty@ttyS0 start")
|
doCmd("service serial-getty@ttyS0 start")
|
||||||
|
grub, _ := res.ReadFile("grub.d/wit.cfg")
|
||||||
|
ioutil.WriteFile("/etc/default/grub.d/wit.cfg", grub, 0644)
|
||||||
|
doCmd("update-grub")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
})
|
})
|
||||||
rn.NewButton("git config", func () {
|
rn.NewButton("git config", func () {
|
||||||
|
|
Loading…
Reference in New Issue