Fixing PHT downlaod stuff to not crash and allow for HEAD.
Fixing kernel patches for upgraded kernel
Merge remote-tracking branch 'upstream/plexelec-3.2.4' into plexelec-3.2.4