summaryrefslogtreecommitdiff
path: root/hscript/network.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-02 16:34:09 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-02 16:34:09 -0500
commit21ef748c92c10d10d670cd89655ff0b022069b60 (patch)
tree3efd32bf2be77236f7b02d7ccfbc77c6f41752a8 /hscript/network.cc
parent9f422751407f2d100080a0075f8b2293b5a080bd (diff)
downloadhorizon-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.cc6
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) {