Skip to content

Commit

Permalink
what a pain
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jul 31, 2024
1 parent ebe0871 commit 4d38744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions initX20.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ depmod -a
modprobe HdZero
if [ ! -f /usr/local/share/openhd_platform/x20/firstboot_done ]; then
touch /usr/local/share/openhd_platform/x20/firstboot_done
rm /run/openhd/hold.pid
reboot
fi

Expand Down
4 changes: 4 additions & 0 deletions x20/OpenHD_X20
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [ ! -f /usr/local/share/openhd_platform/x20/firstboot_done ]; then
touch /run/openhd/hold.pid
fi

# Go red to say openhd is starting
echo 0 >/sys/class/leds/openhd-x20dev\:red\:usr/brightness
echo 1 >/sys/class/leds/openhd-x20dev\:green\:usr/brightness
Expand Down

0 comments on commit 4d38744

Please sign in to comment.