diff --git a/cmd/start.go b/cmd/start.go index 75ace73..3eb5dba 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -340,7 +340,7 @@ func configureDhcpOrAcceptRtadv(jail *Jail, ipproto int, enable bool) error { if ipproto == IPv6 { key = fmt.Sprintf("%s_ipv6", key) - value = "inet6 auto_linklocal accept_rtadv autoconf" + value = "\"inet6 auto_linklocal accept_rtadv autoconf\"" } if enable == true { @@ -363,7 +363,7 @@ func checkRtsold(jail *Jail) error { if strings.Contains(jail.Config.Ip6_addr, "accept_rtadv") == false { return fmt.Errorf("Must set at least one ip6_addr to accept_rtadv!\n") } - err := enableRcKeyValue(jail.ConfigPath, "rtsold_enable", "yes") + err := enableRcKeyValue(fmt.Sprintf("%s/etc/rc.conf", jail.RootPath), "rtsold_enable", "yes") if err != nil { return fmt.Errorf("ERROR setting rtsold_enable=YES with sysrc for jail %s: %s\n", jail.Name, err) }