-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
- 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.
AdGuardHome/internal/util/helpers.go
Lines 68 to 79 in 0d67aa2
| 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.
Reactions are currently unavailable