Documented and licensed lamps script\nTiny rewrite of n_login