ACF: network/interfaces file location should be configurable
The default location of the interfaces file is /etc/network/interfaces. If the actual file is in a different location and /etc/network/interfaces is a symlink, the ACF's Interfaces page reports:
Interfaces file /etc/network/interfaces
File not found
It would be useful to be able to configure the /etc/network/interfaces location in the /etc/acf/acf.conf file.
A proposed solution:
- Add to acf-core/acf.conf:
# Actual location of the 'interfaces' file.
interfaces_file=/etc/network/interfaces
- Modify acf-alpine-baselayout/interfaces-model.lua to read from acf.conf
-- local filename = "/etc/network/interfaces"
local filename = (FRAMEWORK.conf.interfaces_file or "/etc/network/interfaces")