diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-02 16:34:09 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-02 16:34:09 -0500 |
commit | 21ef748c92c10d10d670cd89655ff0b022069b60 (patch) | |
tree | 3efd32bf2be77236f7b02d7ccfbc77c6f41752a8 /hscript/network.cc | |
parent | 9f422751407f2d100080a0075f8b2293b5a080bd (diff) | |
download | horizon-21ef748c92c10d10d670cd89655ff0b022069b60.tar.gz horizon-21ef748c92c10d10d670cd89655ff0b022069b60.tar.bz2 horizon-21ef748c92c10d10d670cd89655ff0b022069b60.tar.xz horizon-21ef748c92c10d10d670cd89655ff0b022069b60.zip |
hscript: More logging and dir creation
Diffstat (limited to 'hscript/network.cc')
-rw-r--r-- | hscript/network.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hscript/network.cc b/hscript/network.cc index 2f4111e..f728aef 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -266,6 +266,9 @@ bool NetAddress::validate(ScriptOptions opts) const { } bool NetAddress::execute(ScriptOptions) const { + output_info("installfile:" + std::to_string(this->lineno()), + "netaddress: adding configuration for " + _iface); + std::ofstream config("/tmp/horizon/netifrc/config_" + this->iface(), std::ios_base::app); if(!config) { @@ -477,6 +480,9 @@ bool NetSSID::validate(ScriptOptions options) const { } bool NetSSID::execute(ScriptOptions) const { + output_info("installfile:" + std::to_string(this->lineno()), + "netssid: configuring SSID " + _ssid); + std::ofstream conf("/tmp/horizon/wpa_supplicant.conf", std::ios_base::app); if(!conf) { |