Sort out various startup scripts