Niels, Your patch breaks the normal use case (non-serial autologin) and is unnecessary anyway. You should simply customize live-config as explained in the manual to implement whatever non-standard behaviors you want, if the standard behaviors don't suit your needs.
Ben -- Sent from my Android device with K-9 Mail. Please excuse my brevity.