JSON="{ \"data\":["
SEP="";
for DEV in `smartctl --scan | awk '{print $1}'`; do
JSON=$JSON"$SEP{\"{#HDNAME}\":\"$DEV\"}"
SEP=", "
done
JSON=$JSON"]}"
echo $JSON
iptables -P FORWARD DROP
iptables -I FORWARD -m time --timestart 13:20:00 --timestop 14:20:00 --kerneltz -j ACCEPT
iptables -I FORWARD -m time --timestart 15:20:00 --timestop 15:20:00 --kerneltz -j ACCEPT