Was he senteced to prison, lived a normal life, commited suicide or something like that ?
Leopold Lojka, while feeling a degree of personal responsibility for what happened, wasn't really the guilty party nor was he recognized as such, so no, he was not punished and was in fact an important witness (together with Franz von Harrach for whom he was employed as a chauffeur) in the trial against Princip.
Since Lojka was a butcher by trade and a reservist NCO with the rank of 'Zugsführer' he was - after the war broke out - called to service. He was posted in Mostar in Bosnia and served there as army's butcher.
In 1916 he was promoted to the rank of Feldwebel and transferred to Klosterneuburg in Lower Austria near Vienna where he served as a truck driver (as well as a chauffeur for various officers) at the military autopark (k. und k. Kraftfahrersdepot). He spent the rest of the war there. In November of that year he married Anna Lhotská and had two sons with her - František and Alfréd - while also acquiring Heimatrecht (basically a residence permit and the right to a certain degree of social support) in Švábov municipality near Jihlava.
After the end of the war and the dissolution of the Monarchy Lojka became formally a part of the Czechoslovak Automobile Troops (as well as becoming a Czechoslovak citizen), however he requested to be put on indefinite leave in 1920 and in December he became a reservist. In 1921 he was briefly called to service as a result of Czechoslovak partial mobilisation when the former emperor Charles tried to regain the Hungarian throne.
In 1920 he also opens up a restaurant in Znojmo, however his son František dies and in 1923 he divorces his wife with whom then he enters into a dispute regarding his remaining son Alfréd. Since his ex-wife moved to Vienna, Leopold wanted his child to get a Czech-language education and for Alfréd to convert to the Bohemian Brethren which according to him Alfréd would not be able to get in Vienna. Anyways, per court decision in 1925 Alfréd was to stay with his father most of the year, visiting his mother only during the school's summer break.
Leopold meanwhile does not have much luck in Znojmo with his restaurant, so he closes shop and moves to Brno and opens a new restaurant/pub. He became quite popular among the local factory workers; he tended to regale his customers with his stories about the Archduke and the war. However, even here he wasn't all that financially successful, he accumulated quite a lot of debt and became an alcoholic, although he did managed to get a loan from Count Harrach his former employer.
In 1926 Leopold became seriously ill and on 18 July 1926 around 6:30 PM died alone. The doctor who was called to the scene determined the cause of death as chronic nephritis (kidney inflammation).
source:
SKOUPÝ, Jiří: Šofér, který změnil dějiny, 2017