Skip to content

AdGuardHome installed wrong Init script #2757

@berna1995

Description

@berna1995
  • Version of AdGuard Home server:
    • 0.105.1
  • How did you install AdGuard Home:
    • Github release, manually
  • How did you setup DNS configuration:
    • Router
  • If it's a router or IoT, please write device model:
    • DGA4130
  • CPU architecture:
    • ARM
  • Operating system and version:
    • OpenWRT 15.05

Expected Behavior

After install, i would exepct AdGuard to run and enable the correct init script

Actual Behavior

Init script is installed in /etc/init.d but it's not the correct one for OpenWRT and so it doesn't "enable" it.

Additional Information

Problem might be related to how OpenWRT is detected.

func IsOpenWRT() bool {
if runtime.GOOS != "linux" {
return false
}
body, err := ioutil.ReadFile("/etc/os-release")
if err != nil {
return false
}
return strings.Contains(string(body), "OpenWrt")
}

There is no guarantee that /etc/os-release file will be present in the host system, you should rather look for /etc/openwrt_release.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions