#!/bin/bash

command=$1
STATION_PATH=/sys/relays/stations
PASCAL_PATH=/sys/pascal
for var in {1..24}
do
  station="st$var"
  if [ "$command" = "on" ]; then
    echo 1 > $STATION_PATH/$station/mode
  else
    echo 0 > $STATION_PATH/$station/mode
  fi
done

