#!/bin/bash
PART_NUM=$(cat /sys/devices/platform/bone_capemgr/slot-0/part-number)
echo -e "\033[1;33m\033[1mStartup - Adjusting EDP01 Settings\033[0m"

if [ $PART_NUM == "nq-edp01" ]; then
    echo -e "\033[1;33m\033[1m    Setting Rising Edge for EDP01 Device\033[0m"
    echo rising > /sys/class/gpio/gpio49/edge
else
    echo -e "\033[1;33m\033[1m    No settings to change for $PART_NUM Device\033[0m"
fi

