Commit a07d779b authored by fkardame's avatar fkardame 💬

Initiate Sync Script

parent 8834fa9b
#!/usr/bin/env sh
set -e
# Could get this from dt, fixed for now
GPIO=8
# Headphone detect gpios are exported by default
value="$(cat /sys/class/gpio/gpio${GPIO}/value)"
if [ "$value" -gt 0 ]; then
action=plug
else
action=unplug
fi
/etc/acpi/audio_jack_plugged_in.sh jack/headphone HEADPHONE $action
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment