diff --git a/initX20.sh b/initX20.sh index f75ab29..8a3b399 100644 --- a/initX20.sh +++ b/initX20.sh @@ -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 diff --git a/x20/OpenHD_X20 b/x20/OpenHD_X20 index 03017fc..244aa32 100755 --- a/x20/OpenHD_X20 +++ b/x20/OpenHD_X20 @@ -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