hydrophonitor/scripts/export-config-values.sh

6 lines
157 B
Bash

#!/bin/bash
CONFIG_FILE=/boot/hydrophonitor/configuration/hydrophonitor-config.txt
export $(grep -v '^#' $CONFIG_FILE | tr -d '[:space:]' | xargs -d '\n')