#!/bin/bash

# Simple utility script for toggling the SM220 wake pin.
# Spares the user having to flip the GPIO lines constantly.
#
# Version 1.0.0

if [ ! "$UID" -eq 0 ] ; then
        echo "The wake up pin must be controlled as root or sudo."
        exit -1
fi

echo 1 > /sys/class/gpio/gpio33/value
sleep 1
echo 0 > /sys/class/gpio/gpio33/value

